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_EP_QUERY 3DAT "Jul 16, 2004"
9 dat_ep_query \- provide parameters of the Endpoint
13 cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-ldat\fR [ \fIlibrary\fR\&.\|.\|. ]
14 #include <\fBdat/udat.h\fR>
18 IN DAT_EP_HANDLE ep_handle,
19 IN DAT_EP_PARAM_MASK ep_param_mask,
20 OUT DAT_EP_PARAM *ep_param
31 Handle for an instance of the Endpoint.
37 \fB\fIep_param_mask\fR\fR
40 Mask for Endpoint parameters.
49 Pointer to a Consumer-allocated structure that the Provider fills with Endpoint
56 The \fBdat_ep_query()\fR function provides the Consumer parameters, including
57 attributes and status, of the Endpoint. Consumers pass in a pointer to
58 Consumer-allocated structures for Endpoint parameters that the Provider fills.
61 The \fIep_param_mask\fR parameter allows Consumers to specify which parameters
62 to query. The Provider returns values for \fIep_param_mask\fR requested
63 parameters. The Provider can return values for any other parameters.
66 Some of the parameters only have values for certain Endpoint states.
67 Specifically, the values for \fIremote_ia_address\fR and \fIremote_port_qual\fR
68 are valid only for Endpoints in the
69 \fBDAT_EP_STATE_PASSIVE_CONNECTION_PENDING\fR,
70 \fBDAT_EP_STATE_ACTIVE_CONNECTION_PENDING\fR,
71 \fBDAT_EP_STATE_TENTATIVE_CONNECTION_PENDING\fR,
72 \fBDAT_EP_STATE_DISCONNECT_PENDING\fR, \fBDAT_EP_STATE_COMPLETION_PENDING\fR,
73 or \fBDAT_EP_STATE_CONNECTED\fR states. The values of \fIlocal_port_qual\fR is
74 valid only for Endpoints in the \fBDAT_EP_STATE_PASSIVE_CONNECTION_PENDING\fR,
75 \fBDAT_EP_STATE_ACTIVE_CONNECTION_PENDING\fR,
76 \fBDAT_EP_STATE_DISCONNECT_PENDING\fR, \fBDAT_EP_STATE_COMPLETION_PENDING\fR,
77 or \fBDAT_EP_STATE_CONNECTED\fR states, and might be valid for
78 \fBDAT_EP_STATE_UNCONNECTED\fR, \fBDAT_EP_STATE_RESERVED\fR,
79 \fBDAT_EP_STATE_TENTATIVE_CONNECTION_PENDING\fR,
80 \fBDAT_EP_STATE_PASSIVE_CONNECTION_PENDING\fR, and
81 \fBDAT_EP_STATE_UNCONNECTED\fR states.
86 \fB\fBDAT_SUCCESS\fR\fR
89 The operation was successful.
95 \fB\fBDAT_INVALID_HANDLE\fR\fR
98 The \fIep_handle\fR parameter is invalid.
104 \fB\fBDAT_INVALID_PARAMETER\fR\fR
107 The \fIep_param_mask\fR parameter is invalid.
113 See \fBattributes\fR(5) for descriptions of the following attributes:
121 ATTRIBUTE TYPE ATTRIBUTE VALUE
123 Interface Stability Standard: uDAPL, 1.1, 1.2
131 \fBlibdat\fR(3LIB), \fBattributes\fR(5)