socket_connect (STRING* hostname, var port, var TCP)
Opens an TCP or UPD network socket for connection to a socket server. Subsequently data can be sent to or received from this socket.
Returns:
0
if the connection could not be established, otherwise nonzero.
Parameters:
hostname
Domain or IP Address, or
NULL
for a socket on the local host.
port
Socket port number.
TCP
0 for a UDP datagram socket, 1 for a TCP stream socket.
Edition
P
LC
A7.82
Speed:
Medium (UDP), slow (TCP)
Example:
See
socket_send
See also:
session_connect
,
socket_send
,
socket_receive
► latest version online