Manages options for a transport end point.
Transport Layer Interface Library (libtli.a)
#include <tiuser.h>
int t_optmgmt(fd, req, ret)
int fd;
struct t_optmgmt * req;
struct t_optmgmt * ret;
The t_optmgmt subroutine enables a transport user to retrieve, verify, or negotiate protocol options with the transport provider.
fd | Identifies a bound transport end point. |
req | Requests a specific action of the provider. |
ret | Returns options and flag values to the user. |
Both the req and ret parameters point to a t_optmgmt structure containing the following members:
struct netbuf opt; long flags;
The opt field identifies protocol options, and the flags field specifies the action to take with those options.
The options are represented by a
netbuf structure in a manner similar to the address in the t_bind subroutine. The req
parameter is used to send options to the provider. This
netbuf structure contains the following fields:
len | Specifies the number of bytes in the options. |
buf | Points to the options buffer. |
maxlen | Has no meaning for the req parameter. |
The ret parameter is
used to return information to the user from the transport provider. On
return, this netbuf structure contains the following fields:
The flags field of the
req parameter can specify one of the following actions:
If issued as part of the connectionless-mode service, the t_optmgmt subroutine may become blocked due to flow control constraints. The subroutine does not complete until the transport provider has processed all previously sent data units.
On successful completion, the t_optmgmt subroutine returns a value of 0. Otherwise, it returns a value of -1, and the t_errno variable is set to indicate the error.
If unsuccessful, the
t_errno variable is set to one of the following:
This subroutine is part of Base Operating System (BOS) Runtime.
The t_getinfo subroutine, t_open subroutine.
List of Streams Programming References and STREAMS Overview in AIX 5L Version 5.1 Communications Programming Concepts.