1SLPGetRefreshIntervSaelr(v3iScLeP)Location Protocol LibrarySFLuPnGcettiRoenfsreshInterval(3SLP)
2
3
4
6 SLPGetRefreshInterval - return the maximum allowed refresh interval
7
9 cc [ flag... ] file... -lslp [ library... ]#include <slp.h>
10
11 int SLPGetRefreshInterval(void)
12
13
15 The SLPGetRefreshInterval() function returns the maximum across all DAs
16 of the min-refresh-interval attribute. This value satisfies the adver‐
17 tised refresh interval bounds for all DAs. If this value is used by the
18 SA, it assures that no refresh registration will be rejected. If no DA
19 advertises a min-refresh-interval attribute, a value of 0 is returned.
20 If an error occurs, an SLP error code is returned.
21
23 This function or its callback may return any SLP error code. See the
24 ERRORS section in slp_api(3SLP).
25
27 Example 1 Using SLPGetRefreshInterval()
28
29
30 Use the following example to return the maximum valid refresh interval
31 for SA:
32
33
34 int minrefresh
35
36 minrefresh = SLPGetRefreshInterval();
37
38
40 SLP_CONF_FILE When set, use this file for configuration.
41
42
44 See attributes(5) for descriptions of the following attributes:
45
46
47
48
49 ┌─────────────────────────────┬─────────────────────────────┐
50 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
51 ├─────────────────────────────┼─────────────────────────────┤
52 │Availability │SUNWslpu │
53 └─────────────────────────────┴─────────────────────────────┘
54
56 slpd(1M), slp_api(3SLP), slp.conf(4), slpd.reg(4), attributes(5)
57
58
59 System Administration Guide: Network Services
60
61
62 Kempf, J. and Guttman, E. RFC 2614, An API for Service Location. The
63 Internet Society. June 1999.
64
65
66
67SunOS 5.11 16 Jan 2003 SLPGetRefreshInterval(3SLP)