1SLPSetProperty(3SLPS)ervice Location Protocol Library FunctioSnLsPSetProperty(3SLP)
2
3
4
6 SLPSetProperty - set an SLP configuration property
7
9 cc [ flag... ] file... -lslp [ library... ]
10 #include <slp.h>
11
12 void SLPSetProperty(const char *pcName, const char *pcValue);
13
14
16 The SLPSetProperty() function sets the value of the SLP property to the
17 new value. The pcValue parameter contains the property value as a
18 string.
19
21 pcName A null-terminated string with the property name. pcName
22 cannot be NULL.
23
24
25 pcValue A null-terminated string with the property value. pcValue
26 cannot be NULL
27
28
30 This function or its callback may return any SLP error code. See the
31 ERRORS section in slp_api(3SLP).
32
34 Example 1 Setting a Configuration Property
35
36
37 The following example shows to set the property net.slp.typeHint to
38 service:ftp:
39
40
41 SLPSetProperty ("net.slp.typeHint" "service:ftp");
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 SLPSetProperty(3SLP)