slperror.html

来自「SLP协议在linux下的实现。此版本为1.2.1版。官方网站为www.open」· HTML 代码 · 共 224 行

HTML
224
字号
<!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 - SLPError Codes</title></head><body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E" alink="#FF0000"><h2>SLPError Codes</h2><hr WIDTH="100%"><p>The following is an explanation of the SLP error codes are returnedby SLP functions:<br>&nbsp;<table BORDER WIDTH="100%" NOSAVE ><tr NOSAVE><td NOSAVE><a NAME="SLP_LAST_CALL"></a>SLP_LAST_CALL</td><td>1</td><td>Passed to callback functions when the API library has no more datafor them and therefore no further calls will<br>be made to the callback on the currently outstanding operation. Thecallback can use this to signal the main body of the client code that nomore data will be forthcoming on the operation, so that the main body ofthe client code can break out of data collection loops. On the last callof a callback during both a synchronous and synchronous call, the errorcode parameter has value SLP_LAST_CALL, and the other parameters are allNULL. If no results are returned by an API operation, then only one callis made, with the error parameter set to SLP_LAST_CALL.</td></tr><tr><td><a NAME="SLP_OK"></a>SLP_OK</td><td>0</td><td>indicates that the no error occurred during the operation.</td></tr><tr><td><a NAME="LANGUAGE_NOT_SUPPORTED"></a>SLP_LANGUAGE_NOT_SUPPORTED</td><td>-1</td><td>No DA or SA has service advertisement or attribute information in thelanguage requested, but at least one DA or SA indicated, via the LANGUAGE_NOT_SUPPORTEDerror code, that it might have information for that service in anotherlanguage</td></tr><tr><td><a NAME="PARSE_ERROR"></a>SLP_PARSE_ERROR</td><td>-2</td><td>The SLP message was rejected by a remote SLP agent. The API returnsthis error only when no information was retrieved, and at least one SAor DA indicated a protocol error. The data supplied through the API maybe malformed or a may have been damaged in transit.</td></tr><tr><td><a NAME="INVALID_REGISTRATION"></a>SLP_INVALID_REGISTRATION</td><td>-3</td><td>The API may return this error if an attempt to register a service wasrejected by all DAs because of a malformed URL or attributes. SLP doesnot return the error if at least one DA accepted the registration.&nbsp;The deregistered service url does not conform to valid service url syntax.&nbsp;The service url being deregistered is not registered this means that eitherit was never registered via a call to SLPReg() or that the registrationlifetime has expired.&nbsp;&nbsp; SLP_INVALID_REGISTRATION is commonlyreturned when an attempt is made to deregister a service that was registeredby a call to SLPReg() on a different host.</td></tr><tr><td><a NAME="SCOPE_NOT_SUPPORTED"></a>SLP_SCOPE_NOT_SUPPORTED</td><td>-4</td><td>The API returns this error if the SA has been configured with net.slp.useScopesvalue-list of scopes and the SA request did not specify one or more ofthese allowable scopes, and no others. It may be returned by a DA or SAif the scope included in a request is not supported by the DA or SA.&nbsp;</td></tr><tr><td><a NAME="AUTHENTICATION_ABSENT"></a>SLP_AUTHENTICATION_ABSENT</td><td>-6</td><td>If the SLP framework supports authentication, this error arises whenthe UA or SA failed to send an authenticator for requests or registrationsin a protected scope.</td></tr><tr><td><a NAME="AUTHENTICATION_FAILED"></a>SLP_AUTHENTICATION_FAILED</td><td>-7</td><td>If the SLP framework supports authentication, this error arises whena authentication on an SLP message failed</td></tr><tr><td><a NAME="SLP_INVALID_UPDATE"></a>SLP_INVALID_UPDATE</td><td>-13</td><td>An update for a non-existing registration was issued, or the updateincludes a service type or scope different than that in the initial registration,etc.</td></tr><tr><td><a NAME="SLP_REFRESH_REJECTED"></a>SLP_REFRESH_REJECTED</td><td>-15</td><td>The SA attempted to refresh a registration more frequently than theminimum refresh interval. The SA should call the appropriate API functionto obtain the minimum refresh interval to use.</td></tr><tr><td><a NAME="SLP_NOT_IMPLEMENTED"></a>SLP_NOT_IMPLEMENTED</td><td>-17</td><td>If an unimplemented feature is used, this error is returned.</td></tr><tr><td><a NAME="SLP_BUFFER_OVERFLOW"></a>SLP_BUFFER_OVERFLOW</td><td>-18</td><td>An outgoing request overflowed the maximum network MTU size. The requestshould be reduced in size or broken into pieces and tried again.</td></tr><tr><td><a NAME="SLP_NETWORK_TIMED_OUT"></a>SLP_NETWORK_TIMED_OUT</td><td>-19</td><td>When no reply can be obtained in the time specified by the configuredtimeout interval for a unicast request, this error is returned.</td></tr><tr><td><a NAME="SLP_NETWORK_INIT_FAILED"></a>SLP_NETWORK_INIT_FAILED</td><td>-20</td><td>If the network cannot initialize properly, this error is returned.Will also be returned if an SA or DA agent (slpd) can not be contacted.See SLPReg() and SLPDeReg() for more information.</td></tr><tr><td><a NAME="SLP_MEMORY_ALLOC_FAILED"></a>SLP_MEMORY_ALLOC_FAILED&nbsp;</td><td>-21</td><td>Out of memory error</td></tr><tr><td><a NAME="SLP_PARAMETER_BAD"></a>SLP_PARAMETER_BAD</td><td>-22</td><td>If a parameter passed into a function is bad, this error is returned.</td></tr><tr><td><a NAME="SLP_NETWORK_ERROR"></a>SLP_NETWORK_ERROR</td><td>-23</td><td>The failure of networking during normal operations causes this errorto be returned.</td></tr><tr><td><a NAME="SLP_INTERNAL_SYSTEM_ERROR"></a>SLP_INTERNAL_SYSTEM_ERROR</td><td>-24</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><tr><td><a NAME="SLP_HANDLE_IN_USE"></a>SLP_HANDLE_IN_USE</td><td>-25</td><td>In the C API, callback functions are not permitted to recursively callinto the API on the same SLPHandle, either directly or indirectly. If anattempt is made to do so, this error is returned from the called API function.</td></tr><tr><td><a NAME="SLP_TYPE_ERROR"></a>SLP_TYPE_ERROR&nbsp;</td><td>-26</td><td>If the API supports type checking of registrations against servicetype templates, this error can arise if the attributes in a registrationdo not match the service type template for the service.</td></tr></table></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?