.th TcpClose III 4/21/86
.sh "NAME"
TcpClose - close a TCP connection
.sh "C SYNOPSIS"
.nf
 int         Loc_Name;
 int         stat;
 . . .
 stat = TcpClose (Loc_Name);
.fi
.sh "DESCRIPTION"
The TcpClose primitive is used to terminate a TCP connection.
.s3
The Loc_Name parameter is the local connection name associated with a
specific TCP connection.  This identifier was returned from a
previously successful TcpOpen primitive call to establish the
connection.
.s3
All further TCP service requests associated with this connection will
be rejected.  This represents a slight implementation discrepancy from
the suggested handling of this event as defined in the TCP Specification
Document (IEN-129).
.sh "EXCEPTIONS"
TcpClose
returns the following error codes:
.lp 10 0
.nf
XtcpOK    (0)      Successful
XtcpNoX   (3)      Non-existent TCP Daemon
XtcpNoNSS (6)      Non-existent TCP Connection
.fi
.i0
.sh "FILES"
.nf
/ksb/include/tcp.h     TCP Interface Definitions for C
/ksb/lib/TCP.a   TCP Interface Library for C
.fi
.sh "SEE ALSO"
TcpOpen (III)

