1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
|
<!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 - SLPDereg()</title>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000EF" vlink="#51188E" alink="#FF0000">
<h2>
SLPDereg</h2>
<hr WIDTH="100%">
<h3>
Declaration</h3>
<tt>#include <slp.h></tt>
<p><tt><a href="/SLPError.html">SLPError</a> SLPDereg( <a href="SLPTypes.html#SLPHandle">SLPHandle</a><a href="#hslp">hslp</a>,</tt>
<br><tt>
const char* <a href="#srvurl">srvurl</a>,</tt>
<br><tt>
<a href="SLPRegReport.html">SLPRegReport</a> <a href="#callback">callback</a>,</tt>
<br><tt>
void* <a href="#cookie">cookie</a> )</tt>
<h3>
Description</h3>
Deregisters the advertisement for URL <tt>srvurl</tt> in all scopes where
the service is registered and all language locales. The deregistration
is not just confined to the locale of the <tt>SLPHandle</tt>,. The
API library is required to perform the operation in all scopes obtained
through configuration.
<br>
<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> on which to de-register
the service.</td>
</tr>
<tr VALIGN=TOP NOSAVE>
<td NOSAVE><a NAME="srvurl"></a><tt>srvurl</tt></td>
<td>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
<a href="Syntax.html">Syntax</a>
for more information on SLP Service URL syntax.</td>
</tr>
<tr VALIGN=TOP NOSAVE>
<td><a NAME="callback"></a><tt>callback</tt></td>
<td NOSAVE>The address of an <tt><a href="SLPRegReport.html">SLPRegReport</a></tt>
function that will be called to report the operation completion status.
May not be NULL. See <a href="Callbacks.html">Callbacks</a> for more information
on how callbacks are used by the SLPAPI.</td>
</tr>
<tr VALIGN=TOP NOSAVE>
<td NOSAVE><a NAME="cookie"></a><tt>cookie</tt></td>
<td NOSAVE>Pointer to memory that gets passed to the callback code.
May be NULL.</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_INVALID_REGISTRATION</td>
<td>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.</td>
</tr>
<tr>
<td>SLP_PARSE_ERROR</td>
<td>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.</td>
</tr>
<tr>
<td>SLP_AUTHENTICATION_ABSENT</td>
<td>If the SLP framework supports authentication, this error arises when
the UA or SA failed to send an authenticator for requests or registrations.</td>
</tr>
<tr>
<td>SLP_AUTHENTICATION_FAILED</td>
<td>If the SLP framework supports authentication, this error arises when
a authentication on an SLP message failed.</td>
</tr>
<tr>
<td>SLP_NETWORK_TIMED_OUT</td>
<td>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</td>
</tr>
<tr>
<td>SLP_NETWORK_INIT_FAILED</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.
slpd must be running in order to call SLPReg() or SLPDereg().</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_NETWORK_ERROR</td>
<td>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.</td>
</tr>
<tr>
<td>SLP_INTERNAL_SYSTEM_ERROR</td>
<td>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.</td>
</tr>
<tr>
<td>SLP_HANDLE_IN_USE</td>
<td>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.</td>
</tr>
</table>
<p>Be aware, especially if the call is async, of error codes that may be
passed to the SLPRegReport() callback function.
<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>
<a href="SLPReg.html">SLPReg()</a>, <a href="Syntax.html">Syntax</a>, <a href="Callbacks.html">Callbacks</a>
</body>
</html>
|