ConnectSocket (open)

Connect a TCP/IP socket to an IP address and/or a port

Syntax

LOADLIB "wh::internet/tcpip.whlib";

BOOLEAN FUNCTION ConnectSocket(INTEGER connectionid, STRING host, INTEGER port)

Parameters

INTEGER connectionid

Connection ID to bind

STRING host

IP address to connect to

INTEGER port

Port to connect to

Return value

BOOLEAN

TRUE on a succesful connect, FALSE on failure