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 SLPFINDSRVS 3SLP "Jan 16, 2003"
8 SLPFindSrvs \- return service URLs
12 cc [ \fIflag\fR... ] \fIfile\fR... \fB-lslp\fR [ \fIlibrary\fR... ]
15 \fBSLPError\fR \fBSLPFindSrvs\fR(\fBSLPHandle\fR \fIhSLP\fR, \fBconst char *\fR\fIpcServiceType\fR,
16 \fBconst char *\fR\fIpcScopeList\fR,\ \fBconst char *\fR\fIpcSearchFilter\fR,
17 \fBSLPSrvURLCallback *\fR\fIcallback\fR, \fBvoid *\fR\fIpvCookie\fR);
23 The \fBSLPFindSrvs()\fR function issues a request for \fBSLP\fR services. The
24 query is for services on a language-specific \fBSLPHandle\fR. It returns the
25 results through the \fIcallback\fR. The parameters will determine the results.
28 If an error occurs in starting the operation, one of the \fBSLPError\fR
37 The language-specific \fBSLPHandle\fR on which to search for services. It
44 \fB\fIpcServiceType\fR\fR
47 The service type string for the request. The \fIpcServiceType\fR can be
48 discovered by a call to \fBSLPSrvTypes()\fR. Examples of service type strings
65 \fIpcServiceType\fR cannot be \fINULL\fR.
71 \fB\fIpcScopeList\fR\fR
74 A pointer to a \fBchar\fR containing a comma-separated list of scope names.
75 It cannot be \fINULL\fR or an empty string, \fB""\fR.
81 \fB\fIpcSearchFilter\fR\fR
84 A query formulated of attribute pattern matching expressions in the form of a
85 \fBLDAPv3\fR search filter. See \fIRFC 2254\fR. If this filter is empty,
86 \fB""\fR, all services of the requested type in the specified scopes are
87 returned. It cannot be \fINULL\fR.
96 A callback through which the results of the operation are reported. It cannot
106 Memory passed to the callback code from the client. It can be \fINULL\fR.
112 This function or its callback may return any \fBSLP\fR error code. See the
113 ERRORS section in \fBslp_api\fR(3SLP).
116 \fBExample 1 \fRUsing \fBSLPFindSrvs()\fR
119 The following example finds all advertisements for printers supporting the
120 \fBLPR\fR protocol with the dpi attribute 300 in the default scope:
127 SLPSrvURLCallback srvngst;
129 err = SLPFindSrvs(hSLP,
130 "service:printer:lpr",
138 .SH ENVIRONMENT VARIABLES
142 \fB\fBSLP_CONF_FILE\fR\fR
145 When set, use this file for configuration.
151 \fBslpd\fR(1M), \fBslp_api\fR(3SLP), \fBslp.conf\fR(4), \fBslpd.reg\fR(4),
155 \fISystem Administration Guide: Network Services\fR
158 Howes, T. \fIRFC 2254, The String Representation of LDAP Search Filters\fR. The
159 Internet Society. 1997.
162 Guttman, E., Perkins, C., Veizades, J., and Day, M. \fIRFC 2608, Service
163 Location Protocol, Version 2\fR. The Internet Society. June 1999.
166 Kempf, J. and Guttman, E. \fIRFC 2614, An API for Service Location\fR. The
167 Internet Society. June 1999.