xcon.Create

Description

This function can be used to create a socket in LUA.

Signature

xcon.Create (string, number, string, number, string, number)

Parameters

NameTypeMandatory/OptionalDescription

stringMHandle that identifies the connection within the LUA script.

numberMSocket 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

stringMthe IP address of the local interface. If empty, the IP is detected by the system.

numberMthe local port that is used for the connection. If zero, the system selects one.

stringMthe IP address or host name of the remote server.

numberMthe remote port that is used to connect to.

Return

None.