#include <tiuser.h>
int t_optmgmt(fd, req, ret) int fd; struct t_optmgmt *req; struct t_optmgmt *ret;
t_optmgmt() enables a transport user to retrieve, verify, or negotiate protocol options with the transport provider. fd identifies a bound transport endpoint.
The req and ret arguments 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 is used to specify the action to take with those options.
The options are represented by a netbuff structure in a manner similar to the address in t_bind.3n The maxlen, len, and buf members of the netbuf structure are described in t_accept.3n req is used to request a specific action of the provider and to send options to the provider. len specifies the number of bytes in the options, buf points to the options buffer, and maxlen has no meaning for the req argument. The transport provider may return options and flag values to the user through ret. For ret, maxlen specifies the maximum size of the options buffer and buf points to the buffer where the options are to be placed. On return, len specifies the number of bytes of options returned. maxlen has no meaning for the req argument, but must be set in the ret argument to specify the maximum number of bytes the options buffer can hold. The actual structure and content of the options is imposed by the transport provider.
The flags field of req can specify one of the following actions:
If issued as part of the connectionless-mode service, t_optmgmt() may block due to flow control constraints. t_optmgmt() will not complete until the transport provider has processed all previously sent data units.
t_optmgmt() returns:
[a manual with the abbreviation NETP]
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97