Creates a TCP socket, and then attempts to connects the socket handle to the remote connection. This command is basically a combination of the NEW TCP SOCKET() and CONNECT SOCKET() functions.
The PortNumber is the remote port number that you wish to communicate with.
The IpAddress is the remote IP address that you wish to communucate with.
The Timeout is specified in milliseconds - if not provided the function will return after 60 seconds if no connection has been made.
The value returned is the Handle of the new socket for communicating with, or 0 if no connection was accepted. |