xcon.Create
Description
This function can be used to create a socket in LUA.
Signature
xcon.Create (string, number, string, number, string, number)
Parameters
Name | Type | Mandatory/Optional | Description |
---|---|---|---|
string | M | Handle that identifies the connection within the LUA script. | |
number | M | Socket type. Allowed values are nxa.xcon.UDP = 1, nxa.xcon.TCPClient = 2, nxa.xcon.HTTP = 4, nxa.xcon.RSS = 5, nxa.xcon.COM = 6, nxa.FTPClient = 8 | |
string | M | the IP address of the local interface. If empty, the IP is detected by the system. | |
number | M | the local port that is used for the connection. If zero, the system selects one. | |
string | M | the IP address or host name of the remote server. | |
number | M | the remote port that is used to connect to. |
Return
None.