|
SLPDereg
Declaration
#include <slp.h>
SLPError SLPDereg( SLPHandlehslp,
const char* srvurl,
SLPRegReport callback,
void* cookie )
Description
Deregisters the advertisement for URL srvurl in all scopes where
the service is registered and all language locales. The deregistration
is not just confined to the locale of the SLPHandle,. The
API library is required to perform the operation in all scopes obtained
through configuration.
Parameters
hslp |
The language specific SLPHandle on which to de-register
the service. |
srvurl |
The SLP Service URL to de-register. May not be the empty string.
May not be NULL. Must conform to SLP Service URL syntax.. See
Syntax
for more information on SLP Service URL syntax. |
callback |
The address of an SLPRegReport
function that will be called to report the operation completion status.
May not be NULL. See Callbacks for more information
on how callbacks are used by the SLPAPI. |
cookie |
Pointer to memory that gets passed to the callback code.
May be NULL. |
Returns
SLP_OK |
Indicates that the no error occurred during the operation. |
SLP_INVALID_REGISTRATION |
The deregistered service url does not conform to valid service url
syntax. The service url being deregistered is not registered this
means that either it was never registered via a call to SLPReg() or that
the registration lifetime has expired. SLP_INVALID_REGISTRATION
is commonly returned when an attempt is made to deregister a service that
was registered by a call to SLPReg() on a different host. |
SLP_PARSE_ERROR |
The SLP message was rejected by a remote SLP agent. The API returns
this error only when no information was retrieved, and at least one SA
or DA indicated a protocol error. The data supplied through the API may
be malformed or a may have been damaged in transit. |
SLP_AUTHENTICATION_ABSENT |
If the SLP framework supports authentication, this error arises when
the UA or SA failed to send an authenticator for requests or registrations. |
SLP_AUTHENTICATION_FAILED |
If the SLP framework supports authentication, this error arises when
a authentication on an SLP message failed. |
SLP_NETWORK_TIMED_OUT |
When no reply can be obtained in the time specified by the configured
timeout interval for a unicast request, this error is returned. In
other words, slpd is running, but something is wrong with it |
SLP_NETWORK_INIT_FAILED |
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.
slpd must be running in order to call SLPReg() or SLPDereg(). |
SLP_MEMORY_ALLOC_FAILED |
Out of memory error |
SLP_PARAMETER_BAD |
If a parameter passed into a function is bad, this error is returned. |
SLP_NETWORK_ERROR |
The failure of networking during normal operations causes this error
to be returned. In OpenSLP, this is the error you'll get if an underlying
socket() call failed. |
SLP_INTERNAL_SYSTEM_ERROR |
A basic failure of the API causes this error to be returned. This occurs
when a system call or library fails. The operation could not recover. |
SLP_HANDLE_IN_USE |
Callback functions are not permitted to recursively call into the API
on the same SLPHandle, either directly or indirectly. If an attempt is
made to do so, this error is returned from the called API function. |
Be aware, especially if the call is async, of error codes that may be
passed to the SLPRegReport() callback function.
Status
OpenSLP 0.6.0 |
Fully implemented as specified by RFC 2614 |
See Also
SLPReg(), Syntax, Callbacks
|