CALL DLL Net("Connect",Server$,Service$)
This connects to a TCP server. Server$ is the host name or IP address
of the server to connect. Service$ is the TCP service name or port number.
The Net.DLL manages one active TCP or UDP connection. If the Net.DLL is
already connected an error 2002 is returned.
Errors: 2002, 2003, 2004, 2005

CALL DLL Net("ConnectUDP",Server$,Service$[,Source$])
This connects to an UDP server. Server$ is the host name or IP address
of the server to connect. Service$ is the UDP service name or port number.
Source$ may optionally be used to specify the source service name or port
number. If omitted, an available source port number is allocated by the
operating system.
The Net.DLL manages one active TCP or UDP connection. If the Net.DLL is
already connected an error 2002 is returned.
Errors: 2002, 2003, 2004, 2005

CALL DLL Net("Disconnect")
This closes the active connection. If the Net.DLL is not connected
an error 2006 is returned.
Errors: 2006, 2007

CALL DLL Net("Send",Buf$)
This transmits the data contained in Buf$ to the server.
Errors: 2006, 2008

CALL DLL Net("Recv",Buf$,Cnt,Timeout)
This tries to receive Cnt bytes of data from the server. The received
data is put into Buf$. If Recv returns with an empty Buf$ an end-of-file
condition was encountered.
If Timeout is zero, Recv blocks until Cnt bytes have been received.
If Timeout is a positive nonzero value, Recv blocks until either Cnt bytes
have been received or the specified number of milliseconds have elapsed.
If Timeout is -1 or Recv is used with the UDP protocol then as much data
(up to Cnt bytes) is put into Buf$ as is available without blocking.
If a timeout is encountered an error 2010 is returned.
Errors: 18, 2006, 2009, 2010