📄 slpsrvtypecallback.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 - SLPSrvTypeCallback</title></head><body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E" alink="#FF0000"><h2>SLPSrvTypeCallback</h2><hr WIDTH="100%"><h3><tt>Declaration</tt></h3><tt>typedef <a href="/SLPTypes.html#SLPBoolean">SLPBoolean</a> SLPSrvTypeCallback(<a href="/SLPTypes.html#SLPHandle">SLPHandle</a><a href="#hslp">hslp</a>,</tt><br><tt> const char* <a href="#srvtypes">srvtypes</a>,</tt><br><tt> <a href="/SLPTypes.html#SLPError">SLPError</a> <a href="#errcode">errcode</a>,</tt><br><tt> void* <a href="#cookie">cookie</a> )</tt><h3>Description</h3>The <tt>SLPSrvTypeCallback</tt> type is the type of the callback functionpassed as a parameter to the <tt><a href="SLPFindSrvTypes.html">SLPFindSrvTypes()</a></tt>function. If the hslp parameter was opened asynchronously, the resultsreturned through the callback may be uncollated. If the hslp handleparameter was opened synchronously, then the results will be collated toremove duplicates.<h3>Parameters</h3><table BORDER CELLPADDING=5 NOSAVE ><tr VALIGN=TOP NOSAVE><td NOSAVE><a NAME="hslp"></a><tt>hslp</tt></td><td NOSAVE>The language specific <tt>SLPHandle</tt> that was passed into the <tt>SLPFindSrvTypes()</tt> function.</td></tr><tr><td><a NAME="srvtypes"></a><tt>srvtypes</tt></td><td>Pointer to a comma separated list of service types. See <a href="Syntax.html#Service Type">Syntax</a>for more information on service type syntax. </td></tr><tr VALIGN=TOP NOSAVE><td><a NAME="errcode"></a><tt>errcode</tt></td><td NOSAVE>An error code indicating if an error occurred during the operation. The callback should check this error code before processing the parameters. </td></tr><tr VALIGN=TOP NOSAVE><td NOSAVE><a NAME="cookie"></a><tt>cookie</tt></td><td NOSAVE>The same cookie that was passed as a parameter to the <tt>SLPFindSrvTypes()</tt>call</td></tr><caption ALIGN=BOTTOM> </caption></table><h3>Returns</h3>The callback should return <tt>SLP_TRUE</tt> if more data is desired. The callback may continue to return <tt>SLP_TRUE</tt> until it is calledwith an errcode of <tt>SLP_LAST_CALL</tt>. If no more data is requestedthe callback should return <tt>SLP_FALSE</tt>.<br> <h3>Status</h3><table CELLPADDING=5 NOSAVE ><tr VALIGN=TOP NOSAVE><td NOSAVE>OpenSLP 0.6.0</td><td NOSAVE>SLPSrvTyperCallback functions are not called because SLPFindSrvTypes()is not implemented</td></tr></table><h3>See Also</h3><a href="Syntax.html">Syntax</a>,<a href="Callbacks.html">Callbacks</a></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -