1SLPGetProperty(3SLPS)ervice Location Protocol Library FunctioSnLsPGetProperty(3SLP)
2
3
4
6 SLPGetProperty - return SLP configuration property
7
9 cc [ flag... ] file... -lslp [ library... ]
10 #include <slp.h>
11
12 const char* SLPGetProperty(const char* pcName);
13
14
16 The SLPGetProperty() function returns the value of the corresponding
17 SLP property name, or NULL, if none. If there is no error,
18 SLPGetProperty() returns a pointer to the property value. If the
19 property was not set, it returns the empty string, "". If an error
20 occurs, SLPGetProperty() returns NULL. The returned string should not
21 be freed.
22
24 pcName A null-terminated string with the property name. pcName
25 cannot be NULL.
26
27
29 This function or its callback may return any SLP error code. See the
30 ERRORS section in slp_api(3SLP).
31
33 Example 1 Using SLPGetProperty()
34
35
36 Use the following example to return a list of configured scopes:
37
38
39 const char* useScopes
40
41 useScopes = SLPGetProperty("net.slp.useScopes");
42
43
45 SLP_CONF_FILE When set, use this file for configuration.
46
47
49 See attributes(5) for descriptions of the following attributes:
50
51
52
53
54 ┌─────────────────────────────┬─────────────────────────────┐
55 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
56 ├─────────────────────────────┼─────────────────────────────┤
57 │Availability │SUNWslpu │
58 └─────────────────────────────┴─────────────────────────────┘
59
61 slpd(1M), slp_api(3SLP), slp.conf(4), slpd.reg(4), attributes(5)
62
63
64 System Administration Guide: Network Services
65
66
67 Kempf, J. and Guttman, E. RFC 2614, An API for Service Location. The
68 Internet Society. June 1999.
69
70
71
72SunOS 5.11 16 Jan 2003 SLPGetProperty(3SLP)