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_RSP_CREATE 3DAT "Jul 16, 2004"
9 dat_rsp_create \- create a Reserved Service Point
13 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-ldat\fR [ \fIlibrary\fR\&.\|.\|. ]
14 #include <\fBdat/udat.h\fR>
18 IN DAT_IA_HANDLE ia_handle,
19 IN DAT_CONN_QUAL conn_qual,
20 IN DAT_EP_HANDLE ep_handle,
21 IN DAT_EVD_HANDLE evd_handle,
22 OUT DAT_RSP_HANDLE *rsp_handle
33 Handle for an instance of DAT IA.
42 Connection Qualifier of the IA the Reserved Service Point listens to.
51 Handle for the Endpoint associated with the Reserved Service Point that is the
52 only Endpoint that can accept a Connection Request on this Service Point. The
53 value \fBDAT_HANDLE_NULL\fR requests the Provider to associate a
54 Provider-created Endpoint with this Service Point.
60 \fB\fIevd_handle\fR\fR
63 The Event Dispatcher to which an event of Connection Request arrival is
70 \fB\fIrsp_handle\fR\fR
73 Handle to an opaque Reserved Service Point.
79 The \fBdat_rsp_create()\fR function creates a Reserved Service Point with the
80 specified Endpoint that generates, at most, one Connection Request that is
81 delivered to the specified Event Dispatcher in a Notification event.
86 \fB\fBDAT_SUCCESS\fR\fR
89 The operation was successful.
95 \fB\fBDAT_INSUFFICIENT_RESOURCES\fR\fR
98 The operation failed due to resource limitations.
104 \fB\fBDAT_INVALID_HANDLE\fR\fR
107 The \fIia_handle\fR, \fIevd_handle\fR, or \fIep_handle\fR parameter is invalid.
113 \fB\fBDAT_INVALID_PARAMETER\fR\fR
116 The \fIconn_qual\fR parameter is invalid.
122 \fB\fBDAT_INVALID_STATE\fR\fR
125 Parameter in an invalid state. For example, an Endpoint was not in the Idle
132 \fB\fBDAT_CONN_QUAL_IN_USE\fR\fR
135 Specified Connection Qualifier is in use.
141 The usage of a Reserve Service Point is as follows:
146 The DAT Consumer creates a Local Endpoint and configures it appropriately.
152 The DAT Consumer creates a Reserved Service Point specifying the Local
159 The Reserved Service Point performs the following:
164 Collects native transport information reflecting a received Connection Request.
170 Creates a Pending Connection Request.
176 Creates a Connection Request Notice (event) that includes the Pending
177 Connection Request (which includes, among others, Reserved Service Point
178 Connection Qualifier, its Local Endpoint, and information about remote
185 Delivers the Connection Request Notice to the Consumer-specified target (CNO)
186 \fIevd_handle\fR. The Local Endpoint is transitioned from Reserved to Passive
187 Connection Pending state.
194 Upon receiving a connection request, or at some time subsequent to that, the
195 DAT Consumer must either \fBaccept()\fR or \fBreject()\fR the Pending
202 If accepted, the original Local Endpoint is now in a \fBConnected\fR state and
203 fully usable for this connection, pending only native transport mandated RTU
204 messages. This includes binding it to the IA port if that was not done
205 previously. The Consumer is notified that the Endpoint is in a \fBConnected\fR
206 state by a Connection Established Event on the Endpoint
207 \fIconnect_evd_handle\fR.
213 If rejected, the Local Endpoint point transitions into \fBUnconnected\fR state.
214 The DAT Consumer can elect to destroy it or reuse it for other purposes.
219 See \fBattributes\fR(5) for descriptions of the following attributes:
227 ATTRIBUTE TYPE ATTRIBUTE VALUE
229 Interface Stability Standard: uDAPL, 1.1, 1.2
237 \fBlibdat\fR(3LIB), \fBattributes\fR(5)