Service Location Protocol Library Functions slpstrerror(3SLP)
NAME
slpstrerror - map SLP error codes to messages
SYNOPSIS
#include
const char* slpstrerror(SLPError errcode);
DESCRIPTION
The slpstrerror() function maps errcode to a string expla-
nation of the error. The returned string is owned by the
library and must not be freed.
PARAMETERS
errcode An SLP error code.
ERORS
This function or its callback may return any SLP error code.
See the ERORS section in slpapi(3SLP).
EXAMPLES
Example 1 Using slpsterror()
The following example returns the message that corresponds
to the error code:
SLPError error;
const char* msg;
msg = slpstreerror(err);
ENVIRONMENT VARIABLES
SLPCONFILE When set, use this file for configuration.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 16 Jan 2003 1
Service Location Protocol Library Functions slpstrerror(3SLP)
ATRIBUTE TYPE ATRIBUTE VALUE
Availability SUNWslpu
SEE ALSO
slpd(1M), slpapi(3SLP), slp.conf(4), slpd.reg(4), attri-
butes(5)
System Administration Guide: Network Services
Kempf, J. and Guttman, E. RFC 2614, An API for Service Loca-
tion. The Internet Society. June 1999.
SunOS 5.11 Last change: 16 Jan 2003 2
|