xcon.CreateTCP
Description
This function creates a TCP socket in LUA.
Signature
xcon.CreateTCP (handle, local_ip, local_port, remote_ip, remote_port)
Parameters
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
handle | string | M | Handle that identifies the connection within the LUA script. You can freely choose the handle name (e.g. “myConnection”) |
local_ip | string | M | the IP address of the local interface. If empty (““), the IP is detected by the system. |
local_port | number | M | the local port that is used for the connection. If zero (0), the system selects one. |
remote_ip | string | M | the IP address or host name of the remote server. |
remote_port | number | M | the remote port that is used to connect to. |
Return
None.