2 .\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH SLPSETPROPERTY 3SLP "Jan 16, 2003"
8 SLPSetProperty \- set an SLP configuration property
12 cc [ \fIflag\fR... ] \fIfile\fR... \fB-lslp\fR [ \fIlibrary\fR... ]
15 \fBvoid\fR \fBSLPSetProperty\fR(\fBconst char *\fR\fIpcName\fR, \fBconst char *\fR\fIpcValue\fR);
21 The \fBSLPSetProperty()\fR function sets the value of the \fBSLP\fR property to
22 the new value. The \fIpcValue\fR parameter contains the property value as a
31 A null-terminated string with the property name. \fIpcName\fR cannot be
41 A null-terminated string with the property value. \fIpcValue\fR cannot be
48 This function or its callback may return any \fBSLP\fR error code. See the
49 ERRORS section in \fBslp_api\fR(3SLP).
52 \fBExample 1 \fRSetting a Configuration Property
55 The following example shows to set the property \fBnet.slp.typeHint\fR to
61 SLPSetProperty ("net.slp.typeHint" "service:ftp");
65 .SH ENVIRONMENT VARIABLES
69 \fB\fBSLP_CONF_FILE\fR\fR
72 When set, use this file for configuration.
78 \fBslpd\fR(1M), \fBslp_api\fR(3SLP), \fBslp.conf\fR(4), \fBslpd.reg\fR(4),
82 \fISystem Administration Guide: Network Services\fR
85 Kempf, J. and Guttman, E. \fIRFC 2614, An API for Service Location\fR. The
86 Internet Society. June 1999.