HP-UX Reference (11i v1 05/09) - 3 Library Functions N-Z (vol 7)

t
t_getinfo(3) t_getinfo(3)
NAME
t_getinfo() - get protocol-specific service information
SYNOPSIS
#include <xti.h> /* for X/OPEN Transport Interface - XTI */
/* or */
#include <tiuser.h> /* for Transport Layer Interface - TLI */
int t_getinfo (fd, info);
int fd;
struct info *info;
DESCRIPTION
The t_getinfo() function returns the current characteristics of the underlying transport protocol asso-
ciated with file descriptor fd. The info structure is used to return the same information returned by
t_open(). This function enables a transport user to access this information during any phase of com-
munication.
This argument points to a t_info structure which contains the following members:
t_scalar_t addr; /* max size of the transport protocol address */
t_scalar_t options; /* max number of bytes of protocol-specific options */
t_scalar_t tsdu; /* max size of a transport service data unit,TSDU */
t_scalar_t etsdu; /* max size of expedited transport service data unit,ETSDU */
t_scalar_t connect; /* max data allowed on connection establishment functions */
t_scalar_t discon; /* max data allowed on t_snddis and t_rcvdis functions */
t_scalar_t servtype; /* service type supported by the transport provider */
t_scalar_t flags; /* other info about the transport provider */
The values of the fields have the following meanings:
addr A value greater than or equal to zero indicates the maximum size of a transport protocol
address.
A value of 1 specifies that there is no limit on the address size.
A value of 2 specifies that the transport provider does not provide user access to tran-
sport protocol addresses.
options A value greater than or equal to zero indicates the maximum number of bytes of
protocol-specific options supported by the provider.
A value of 1 specifies that there is no limit on the option size.
A value of 2 specifies that the transport provider does not support user-settable options.
tsdu A value greater than zero specifies the maximum size of a transport service data unit
(TSDU)
A value of zero specifies that the transport provider does not support the concept of
TSDU although it does support the sending of a data stream with no logical boundaries
preserved across a connection.
A value of 1 specifies that there is no limit on the size of a TSDU.
A value of 2 specifies that the transfer of normal data is not supported by the transport
provider.
etsdu A value greater than zero specifies the maximum size of an expedited transport service
data unit (ETSDU).
A value of zero specifies that the transport provider does not support the concept of
ETSDU although it does support the sending of an expedited data stream with no logical
boundaries preserved across a connection.
A value of 1 specifies that there is no limit on the size of an ETSDU.
A value of 2 specifies that the transfer of expedited data is not supported by the tran-
sport provider.
connect A value greater than or equal to zero specifies the maximum amount of data that may be
associated with the connection establishment functions t_connect() and
Section 3958 Hewlett-Packard Company 1 HP-UX 11i Version 1: September 2005