📄 slpparsesrvurl.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 - SLPParseSrvURL()</title></head><body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E" alink="#FF0000"><h2>SLPParseSrvURL</h2><hr WIDTH="100%"><h3>Declaration</h3><tt>#include <slp.h></tt><p><tt><a href="SLPError.html">SLPError</a> SLPParseSrvURL( const char*<a href="#srvurl">srvurl</a>,</tt><br><tt> <a href="SLPTypes.html#SLPSrvURL">SLPSrvURL</a>**<a href="#parsedurl">parsedurl</a>)</tt><h3>Description</h3>Parses a Service URL passed in as a character string and returns the resultsin a pointer to a dynamically allocated <tt><a href="SLPTypes.html#SLPSrvURL">SLPSrvURL</a></tt>structure. The pointer returned in <tt>parsedurl</tt> should be freedby <a href="SLPFree.html">SLPFree()</a>.<br> <h3>Parameters</h3><table BORDER CELLPADDING=5 NOSAVE ><tr VALIGN=TOP NOSAVE><td NOSAVE><a NAME="srvurl"></a><tt>srvurl</tt></td><td NOSAVE>Pointer to a character buffer containing the null terminatedURL string to parse. See <a href="Syntax.html#Service Url">Syntax</a>for more information on Service URL syntax.</td></tr><tr VALIGN=TOP NOSAVE><td NOSAVE><a NAME="parsedurl"></a><tt>parsedurl</tt></td><td NOSAVE>Pointer to a pointer for the <tt><a href="SLPTypes.html#SLPSrvURL">SLPSrvURL</a></tt>structure that receives the parsed URL. The memory should be freedby a call to <a href="SLPFree.html">SLPFree()</a> when no longer needed.</td></tr></table><h3>Returns</h3><table BORDER NOSAVE ><tr NOSAVE><td NOSAVE>SLP_OK</td><td>Indicates that the no error occurred during the operation.</td></tr><tr><td>SLP_PARSE_ERROR</td><td>The service url being parsed is not of valid syntax</td></tr><tr><td>SLP_MEMORY_ALLOC_FAILED </td><td>Out of memory error</td></tr><tr><td>SLP_PARAMETER_BAD</td><td>If a parameter passed into a function is bad, this error is returned.</td></tr><tr><td>SLP_INTERNAL_SYSTEM_ERROR</td><td>A basic failure of the API causes this error to be returned. This occurswhen a system call or library fails. The operation could not recover.</td></tr></table><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><a href="SLPFree.html">SLPFree()</a>, <a href="SLPTypes.html">SLPTypes</a>,<a href="Syntax.html">Syntax</a></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -