📄 slpclose.html
字号:
<!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 wasinvalid, the functions returns silently. Any outstanding synchronousor asynchronous operations are canceled so their callback functions willnot be called any longer.<p>In the OpenSLP implementation, SLPHandles are used to cache informationthat 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 SLPHandleis opened and maintained until the last SLPHandle is closed. Therefore,it is most efficient to leave SLPHandles open for as long as you will needthem (often for the entire life of a process). If youcan 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -