#include <tiuser.h>
int t_snddis(fd, call) int fd; struct t_call *call;
t_snddis() is used to initiate an abortive release on an already established connection or to reject a connect request. fd identifies the local transport endpoint of the connection, and call specifies information associated with the abortive release. call points to a t_call() structure which is defined in <nettlie/tiuser.h> as:
struct t_call { struct netbuf addr; /* address */ struct netbuf opt; /* options */ struct netbuf udata; /* user data */ int sequence; /* sequence number */ };
The maxlen, len, and buf members of the netbuf structure are described in t_accept.3n The values in call have different semantics, depending on the context of the call to t_snddis(). When rejecting a connect request, call must be non-NULL and contain a valid value of sequence to uniquely identify the rejected connect indication to the transport provider. The addr and opt fields of call are ignored. In all other cases, call need only be used when data is being sent with the disconnect request. The addr, opt, and sequence fields of the t_call() structure are ignored. If the user does not wish to send data to the remote user, the value of call may be NULL. udata specifies the user data to be sent to the remote user. The amount of user data must not exceed the limits supported by the transport provider as returned by t_open.3n or t_getinfo.3n If the len field of udata is zero, no data will be sent to the remote user.
t_snddis() returns:
A NULL call structure was specified when rejecting a connect request. The transport provider's outgoing queue will be flushed, so data may be lost.
[a manual with the abbreviation NETP]
Created by unroff & hp-tools. © somebody (See intro for details). All Rights Reserved. Last modified 11/5/97