X25ClosePort(3X25) — Subroutines
Digital
NAME
X25ClosePort − Disposes of an X.25 port
LIBRARY
X.25 Library (libx25.a)
SYNOPSIS
#include <netx25/x25.h>
int X25ClosePort(
int pd );
PARAMETERS
pdIdentifies the port that is to be disposed of.
DESCRIPTION
The X25ClosePort routine disposes of the specified X.25 port descriptor. If pd is the last reference to the underlying X.25 port, then the port is deleted and active X.25 connections are cleared. The effect on the active X.25 call depends upon its current stage in the X.25 call procedure.
RETURN VALUES
Upon successful completion, the X25ClosePort routine returns a value of 0. Otherwise, a (negative) error code is returned.
ERRORS
If the X25ClosePort routine fails, one of the following error codes is returned:
[X25RC_BADPD]
Invalid port descriptor specified.
[X25RC_SYSERR]
An operating system error occurred. The external variable errno is set to indicate the error.
RELATED INFORMATION
Functions: X25ClearCall(3X25), X25GetPortStatus(3X25), X25OpenPort(3X25).
X.25 for Digital UNIX − Programmer’s Reference Manual.