Main sections
SOCK_TCPLISTEN
sock% = SOCK_TCPLISTEN(port%)
This command creates a socket() and binds it to a local port "port%". From now on the program "listens" to TCP messages sent to this port.
The return value is either a socket or -1 if an error occurred.
You can retrieve any error messages with NETGETLASTERROR$().