summaryrefslogtreecommitdiffstats
path: root/debian/openslp-dfsg/openslp-dfsg-1.2.1/doc/html/ProgrammersGuide/SLPClose.html
blob: 95cfd24e7cb105631edc8f28dc3298976c6dc4ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!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>