You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.1 KiB

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.77C-CCK-MCD Caldera Systems OpenLinux [en] (X11; U; Linux 2.4.2 i686) [Netscape]">
<title>OpenSLP Programmers Guide - SLPClose</title>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E" alink="#FF0000">
<h2>
SLPClose</h2>
<hr WIDTH="100%">
<h3>
Declaration</h3>
<tt>#include &lt;slp.h></tt>
<p><tt>void SLPClose(<a href="SLPTypes.html#SLPHandle">SLPHandle</a> <a href="#hslp">hslp</a>)</tt>
<br>&nbsp;
<h3>
Description</h3>
Frees all resources associated with the handle.&nbsp; If the handle was
invalid, the functions returns silently.&nbsp; Any outstanding synchronous
or asynchronous operations are canceled so their callback functions will
not be called any longer.
<p>In the OpenSLP implementation, SLPHandles are used to cache information
that is costly to obtain (in terms of network usage and time).&nbsp;&nbsp;
Since the RFC 2614 API does not provide function calls to for library initialization,&nbsp;
OpenSLP keeps track of the number of SLPHandles that are open.&nbsp;&nbsp;
Several global library data structures are initialized when the first SLPHandle
is opened and maintained until the last SLPHandle is closed.&nbsp; Therefore,
it is most efficient to leave SLPHandles open for as long as you will need
them (often for the entire life of a process).&nbsp;&nbsp;&nbsp; If you
can help it, DO NOT make a habit of opening and closing SLPHandles frequently.
<h3>
Parameters</h3>
<table BORDER CELLPADDING=5 NOSAVE >
<tr VALIGN=TOP NOSAVE>
<td NOSAVE><a NAME="hslp"></a>hslp</td>
<td NOSAVE>An open <tt>SLPHandle</tt> that was returned by <tt><a href="SLPOpen.html">SLPOpen()</a></tt></td>
</tr>
</table>
<h3>
Returns</h3>
None
<br>&nbsp;
<h3>
Status</h3>
<table CELLPADDING=5 NOSAVE >
<tr VALIGN=TOP NOSAVE>
<td NOSAVE>OpenSLP 0.6.0</td>
<td NOSAVE>Fully implemented as specified by RFC 2614</td>
</tr>
</table>
<h3>
See Also</h3>
<tt><a href="SLPOpen.html">SLPOpen()</a></tt>
<br>&nbsp;
<br>&nbsp;
</body>
</html>