Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

t_unbind() - deactivate transport endpoint

&pagelevel(4)&pagelevel

#include <xti.h>

int t_unbind(int fd);

Description

The transport user can call the t_unbind() function to deactivate a transport endpoint, which was previously assigned an address with the t_bind() function.

The fd parameter specifies the transport endpoint which is to be deactivated.

After t_unbind() has been successfully executed, the transport provider accepts no further data or events addressed to transport endpoint fd.

Return value

0:

If successful.

-1:

If an error occurs. t_ errno is set to indicate the error.

Errors

TBADF

The specified file descriptor does not reference a transport endpoint.

TLOOK

An asynchronous event occurred on the transport endpoint passed in fd and this must be processed immediately.

TNOTSUPPORT

This function is not supported by the underlying transport provider.

TOUTSTATE

The function was called in the wrong position within a sequence of XTI function calls for

transport endpoint fd.

TSYSERR

A system error occurred during execution of this function.

See also

t_bind()