OpenNetworkConnection()
Syntax
Connection = OpenNetworkConnection(ServerName$, Port [, Mode])Description
Trys to open a connection to the specified server. 'ServerName$' can be an IP address or a full name (ie: "127.0.0.1" or "ftp.home.net").
If the connection has be granted by the server, then 'Connection' will not equal NULL, otherwise the connection has failed. 'Connection' is needed by all receive and send functions.
The optional 'Mode' parameter can be one of the following value:#PB_Network_TCP: The connection will use the TCP network protocol (default) #PB_Network_UDP: The connection will use the UDP network protocol. The connection will not be explicitely created, as UDP is a connectionless protocol, but it will add an entry in the PureBasic management stack and allow to send data via UDP using the regular SendNetworkData() (and related) functions.
Supported OS
All