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 <slp.h></tt>
<p><tt>void SLPClose(<a href="SLPTypes.html#SLPHandle">SLPHandle</a> <a href="#hslp">hslp</a>)</tt>
<br>
<h3>
Description</h3>
Frees all resources associated with the handle. If the handle was
invalid, the functions returns silently. 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).
Since the RFC 2614 API does not provide function calls to for library initialization,
OpenSLP keeps track of the number of SLPHandles that are open.
Several global library data structures are initialized when the first SLPHandle
is opened and maintained until the last SLPHandle is closed. 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). 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>
<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>
<br>
</body>
</html>
|