1slp_strerror(3SLP)Service Location Protocol Library Functionsslp_strerror(3SLP)
2
3
4

NAME

6       slp_strerror - map SLP error codes to messages
7

SYNOPSIS

9       #include <slp.h>
10
11       const char* slp_strerror(SLPError err_code);
12
13

DESCRIPTION

15       The  slp_strerror()  function  maps err_code to a string explanation of
16       the error. The returned string is owned by the library and must not  be
17       freed.
18

PARAMETERS

20       err_code    An SLP error code.
21
22

ERRORS

24       This  function  or  its callback may return any SLP error code. See the
25       ERRORS section in slp_api(3SLP).
26

EXAMPLES

28       Example 1 Using slp_sterror()
29
30
31       The following example returns the message that corresponds to the error
32       code:
33
34
35         SLPError error;
36         const char* msg;
37         msg = slp_streerror(err);
38
39

ENVIRONMENT VARIABLES

41       SLP_CONF_FILE    When set, use this file for configuration.
42
43

ATTRIBUTES

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

SEE ALSO

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               slp_strerror(3SLP)
Impressum