t_rcvrel Subroutine for Transport Layer Interface

Purpose

Acknowledges receipt of an orderly release indication.

Library

Transport Layer Interface Library (libtli.a)

Syntax

#include <tiuser.h>

t_rcvrel(fd)
int fd;

Description

The t_rcvrel subroutine is used to acknowledge receipt of an orderly release indication. After receipt of this indication, the user may not attempt to receive more data because such an attempt will block forever. However, the user may continue to send data over the connection if the t_sndrel subroutine has not been issued by the user. The subroutine is an optional service of the transport provider, and is only supported if the transport provider returned service type T_COTS_ORD on the t_open or t_getinfo subroutine.

Parameter

Item Description
fd Identifies the local transport end point where the connection exists.

Return Values

On successful completion, the t_rcvrel subroutine returns a value of 0. Otherwise, it returns a value of -1 and sets the t_errno variable to indicate the error.

Error Codes

If unsuccessful, the t_errno variable is set to one of the following:

Value Description
TBADF The specified file descriptor does not refer to a transport end point.
TLOOK An asynchronous event has occurred on this transport end point and requires immediate attention.
TNOREL No orderly release indication currently exists on the specified transport end point.
TNOTSUPPORT This subroutine is not supported by the underlying transport provider.
TOUTSTATE This subroutine was issued in the wrong sequence.
TSYSERR A system error has occurred during execution of this function.