Contains information associated with the newly established connection.
The call parameter points to a t_call structure which contains the following members:
struct netbuf addr;
struct netbuf opt;
struct netbuf udata;
int sequence;
The fields of the t_call structure are:
- addr
- Returns the protocol address associated with the responding transport
endpoint.
- opt
- Presents any options associated with the connection.
- udata
- Points to optional user data that may be returned by the destination
transport user during connection establishment.
- sequence
- Has no meaning for this subroutine.
The maxlen field of
each t_call member must be set before issuing this subroutine
to indicate the maximum size of the buffer for each. However, the vale of
the call parameter may be a null pointer, in which
case no information is given to the user on return from the t_rcvconnect subroutine. By default, the t_rcvconnect subroutine executes in synchronous mode and waits for the connection
to be established before returning. On return, the addr,
opt and udata fields reflect values associated
with the connection.
If O_NONBLOCK is set (via the t_open subroutine or fcntl), the t_rcvconnect subroutine executes in
asynchronous mode, and reduces to a poll for existing connect confirmations.
If none are available, the t_rcvconnect subroutine fails
and returns immediately without waiting for the connection to be established.
(See TNODATA in "Error Codes" below.) In this case,
the t_rcvconnect subroutine must be called again to
complete the connection establishment phase and retrieve the information returned
in the call parameter. |