1SLPClose(3SLP) Service Location Protocol Library Functions SLPClose(3SLP)
2
3
4
6 SLPClose - close an open SLP handle
7
9 cc [ flag... ] file... -lslp [ library... ]
10 #include <slp.h>
11
12 void SLPClose(SLPHandle phSLP);
13
14
16 The SLPClose() function frees all resources associated with the han‐
17 dle. If the handle is invalid, the function returns silently. Any out‐
18 standing synchronous or asynchronous operations are cancelled, so that
19 their callback functions will not be called any further
20
22 phSLP An SLPHandle handle returned from a call to SPLOpen().
23
24
26 This function or its callback may return any SLP error code. See the
27 ERRORS section in slp_api(3SLP).
28
30 Example 1 Using SLPClose()
31
32
33 The following example will free all resources associated the handle:
34
35
36 SLPHandle hslp
37 SLPCLose(hslp);
38
39
41 SLP_CONF_FILE When set, use this file for configuration.
42
43
45 See attributes(5) for descriptions of the following attributes:
46
47
48
49
50 ┌─────────────────────────────┬─────────────────────────────┐
51 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
52 ├─────────────────────────────┼─────────────────────────────┤
53 │Availability │SUNWslpu │
54 └─────────────────────────────┴─────────────────────────────┘
55
57 slpd(1M), slp_api(3SLP), slp.conf(4), slpd.reg(4), attributes(5)
58
59
60 System Administration Guide: Network Services
61
62
63 Kempf, J. and Guttman, E. RFC 2614, An API for Service Location. The
64 Internet Society. June 1999.
65
66
67
68SunOS 5.11 16 Jan 2003 SLPClose(3SLP)