version 6.5
TCP_Close (tcp_ID) Integer
Parameter | Type | Description | |
tcp_ID | Longint | Reference to an open TCP session | |
0 = Session successfully closed | |||
Function result | Integer | Error Code |
Description
The TCP_Close command closes the TCP session referenced by tcp_ID. If a TCP session is not closed, it will occupy one of the 64 references available for TCP sessions. If there are 64 sessions open which have not been closed, the user will not be able to open another session.
tcp_ID is a long integer reference to an open TCP session as established with either the TCP_Open or TCP_Listen command. This command will return the value of zero into the tcp_ID parameter upon successful close of the session.
See Also