4D v13.2TCP_State |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.2
TCP_State
TCP_State
The TCP_State command returns an integer value corresponding to the state of a particular TCP connection. tcp_ID is a long integer reference to an open TCP session as established with either the TCP_Open or TCP_Listen command. statusCode is an integer variable returned which corresponds to one of the status codes below.
This example assumes that a valid TCP connection has already been established and is identified by the Longint value assigned to the $tcp_id variable. In this example, a command is sent to a web server requesting a page of information and then a loop is entered to receive the results. Since web servers automatically close their connnections once they have performed their action, this example keeps receiving until the connection is dropped or an error occurs. |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: 4D Internet Commands 6.5 SEE ALSO |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||