4D Internet Commands v16TCP_Open |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D Internet Commands v16
TCP_Open
TCP_Open
The TCP_Open command initiates an outgoing TCP connection to a domain. TCP_Open initiates a connection to the remote TCP referenced by hostName, on the port referenced by remotePort (if not 0). A long integer value will be returned to tcp_ID, which will be used by all subsequent TCP calls referring to the session. TCP_Open is set to time out in 30 seconds if no data is received by the session identified by the tcp_ID parameter. The default timeout value can be changed for all commands via IT_SetTimeOut. hostName is the host name or IP address of the machine that you are opening a connection to. remotePort indicates the TCP port on the machine indicated by hostName that with which you wish to establish a connection. Note: After a call to TCP_Open (or TCP_Listen), remotePort may contain a negative value if the value passed to this parameter is above 32767. This will not disturb the connection. As a workaround, you can use an intermediate variable: $v_ RemotePort:=v_ RemotePort tcp_ID is the long integer reference to the session that was opened. This reference will be used in all subsequent TCP external calls that reference this session. sessionSettings is an optional parameter of the Integer type giving the user the ability to choose the TCP session settings. Note that these settings are applied to each TCP command called during the session. Default value sets to 0 (Synchron, not SSL). SSL (Secured Socket Layer) is a protocol that allows secured TCP communications (see the 4D documentation for more information and for installation requirements). Any TCP connection opened using the TCP_Open command must be closed later using the TCP_Close command. Asynchronous mode returns control to the 4D kernel immediately without waiting for the connection process to be finished (without waiting for the connection with the remote host to be established). Asynchronous mode is useful for people who do not want all the TCP commands to use 4D time. Synchronous mode returns control to the 4D kernel (to other 4D processes) only when the connection process is finished (successfully or not).
Note: An error 10089 may be returned when passing 2 or 3 if an SSL connection cannot be opened (SLI library not found in the 4D Extensions folder).
Siehe auch
|
EIGENSCHAFTEN
Produkt: 4D Internet Commands
GESCHICHTE
Geändert: 4D Internet Commands 6.8.1 ARTIKELVERWENDUNG
4D Internet Commands ( 4D Internet Commands v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||