Matrix1 Utility Plug-ins

# NEW CONNECT SOCKET

Syntax

Handle = NEW CONNECT SOCKET( IpAddress, PortNumber ) Handle = NEW CONNECT SOCKET( IpAddress, PortNumber, Timeout )

Description

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.

Go back to ...

Matrix1Util_28 Commands Menu
Matrix1 Utils Main Index
Matrix1 Utils Command List
Commands Menu
Main Menu

Copyright © Ian Mold - Matrix1 Software 2006 - 2011