libslp.3n (2010 09)
l
libslp(3N) libslp(3N)
Returns the minimum refresh interval that will be accepted by all SLP SA and DA agents on the
network.
This call is not implemented and always returns
SLP_NOT_IMPLEMENTED
.
SLPError SLPFindScopes(SLPHandle hslp,
char** scopelist)
Sets the scopelist parameter to a pointer to a comma separated list of all available scope values.
The most desirable values are always placed first in the list. There is always one value,
"DEFAULT", in the list.
The memory for the scopelist is dynamically allocated. The memory should be freed by a call to
SLPFree() when no longer needed.
const char* SLPGetProperty(const char* name)
Returns the value of the corresponding SLP property name. The returned string is owned by the
library and MUST NOT be freed. The returned pointer to string is a pointer to static memory.
void SLPSetProperty(const char* name, const char* value):
This function is supposed to allow the caller to set SLP properties, but it is impossible to implement
this function along with SLPGetProperty()
in a way that is even remotely thread safe. There-
fore, SLP implementation completely ignores all calls made to
SLPSetProperty()
so that
SLPGetProperty()
can be used in threaded applications. Note:
1. If
SLP_NETWORK_INIT_FAILED
is returned, then probably slpd is not running. For flexibil-
ity,
OpenSLP() does not require slpd to be running on all hosts, but it does require it to be
running on those hosts that will be registering and deregistering services.
2. Currently SLPDelAttrs()
function is not implemented. Instead of calling SLPDelAttrs(),
developers writing SLP enabled code should use simply
SLPDeReg() to de-register the entire
service then call SLPReg() to re-register the service without the undesired attributes.
RETURN VALUE
If successful, returns
SLP_OK, else it returns one of the SLPError codes. See SLPError (3N) for error
return values.
AUTHOR
SLP was developed by Caldera Systems, Inc.
SEE ALSO
slpd(1M), SLPError(3N), slp.conf(4), slp.reg(4), slp_syntax(7).
STANDARDS CONFORMANCE
RFC 2614, RFC2608
6 Hewlett-Packard Company − 6 − HP-UX 11i Version 3: September 2010