2 .\" This manual page is derived from the DAT/uDAPL 1.2 specification.
3 .\" Portions Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
4 .\" 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.
5 .\" 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.
6 .\" 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]
7 .TH DAT_PSP_CREATE_ANY 3DAT "Jul 16, 2004"
9 dat_psp_create_any \- create a persistent Public Service Point
13 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-ldat\fR [ \fIlibrary\fR\&.\|.\|. ]
14 #include <\fBdat/udat.h\fR>
18 IN DAT_IA_HANDLE \fIia_handle\fR,
19 IN DAT_CONN_QUAL \fIconn_qual\fR,
20 IN DAT_EVD_HANDLE \fIevd_handle\fR,
21 IN DAT_PSP_FLAGS \fIpsp_flags\fR,
22 OUT DAT_PSP_HANDLE *\fIpsp_handle\fR
33 Handle for an instance of DAT IA.
42 Connection Qualifier of the IA on which the Public Service Point is listening.
48 \fB\fIevd_handle\fR\fR
51 Event Dispatcher that provides the Connection Requested Events to the Consumer.
52 The size of the event queue for the Event Dispatcher controls the size of the
53 backlog for the created Public Service Point.
62 Flag that indicates whether the Provider or Consumer creates an Endpoint per
63 arrived Connection Request. The value of \fBDAT_PSP_PROVIDER\fR indicates that
64 the Consumer wants to get an Endpoint from the Provider; a value of
65 \fBDAT_PSP_CONSUMER\fR means the Consumer does not want the Provider to provide
66 an Endpoint for each arrived Connection Request.
72 \fB\fIpsp_handle\fR\fR
75 Handle to an opaque Public Service Point.
81 The \fBdat_psp_create_any()\fR function creates a persistent Public Service
82 Point that can receive multiple requests for connection and generate multiple
83 Connection Request instances that are delivered through the specified Event
84 Dispatcher in Notification events.
87 The \fBdat_psp_create_any()\fR function allocates an unused Connection
88 Qualifier, creates a Public Service point for it, and returns both the
89 allocated Connection Qualifier and the created Public Service Point to the
93 The allocated Connection Qualifier should be chosen from "nonprivileged" ports
94 that are not currently used or reserved by any user or kernel Consumer or host
95 ULP of the IA. The format of allocated Connection Qualifier returned is
96 specific to IA transport type.
99 The \fBdat_psp_create_any()\fR function is blocking. When the Public Service
100 Point is created, \fBDAT_SUCCESS\fR is returned, \fIpsp_handle\fR contains a
101 handle to an opaque Public Service Point Object, and \fIconn_qual\fR contains
102 the allocated Connection Qualifier. When return is not \fBDAT_SUCCESS\fR,
103 \fIpsp_handle\fR and \fIconn_qual\fR return values are undefined.
106 There is no explicit backlog for a Public Service Point. Instead, Consumers can
107 control the size of backlog through the queue size of the associated Event
111 The \fIpsp_flags\fR parameter allows Consumers to request that the Provider
112 create an implicit Endpoint for each incoming Connection Request, or request
113 that the Provider should not create one per Connection Request. If the Provider
114 cannot satisfy the request, the operation shall fail and
115 \fBDAT_MODEL_NOT_SUPPORTED\fR is returned.
118 All Endpoints created by the Provider have \fBDAT_HANDLE_NULL\fR for the
119 Protection Zone and all Event Dispatchers. The Provider sets up Endpoint
120 attributes to match the Active side connection request. The Consumer can change
121 Endpoint parameters. Consumers should change Endpoint parameters, especially PZ
122 and EVD, and are advised to change parameters for local accesses prior to the
123 connection request acceptance with the Endpoint.
128 \fB\fBDAT_SUCCESS\fR\fR
131 The operation was successful.
137 \fB\fBDAT_INSUFFICIENT_RESOURCES\fR\fR
140 The operation failed due to resource limitations.
146 \fB\fBDAT_INVALID_HANDLE\fR\fR
149 The \fIia_handle\fR or \fIevd_handle\fR parameter is invalid.
155 \fB\fBDAT_INVALID_PARAMETER\fR\fR
158 The \fIconn_qual\fR or \fIpsp_flags\fR parameter is invalid.
164 \fB\fBDAT_CONN_QUAL_UNAVAILABLE\fR\fR
167 No Connection Qualifiers available.
173 \fB\fBDAT_MODEL_NOT_SUPPORTED\fR\fR
176 The requested Model was not supported by the Provider.
182 See \fBattributes\fR(5) for descriptions of the following attributes:
190 ATTRIBUTE TYPE ATTRIBUTE VALUE
192 Interface Stability Standard: uDAPL, 1.1, 1.2
200 \fBlibdat\fR(3LIB), \fBattributes\fR(5)