source files: xnet.[ch], slisp/c/netseval.[ch]
(NET-CONNECT <hostname> <port_number> )
The NET-CONNECT function opens a connection to an slisp server running on a given host and port_number. <hostname> should a be string with enough of the network name to allow the host address to be found. On a local network this may just be the machine name, e.g. synapse, on a wide-area network this will be the complete name, e.g., synapse.biostr.washington.edu. The <port_number> is an integer describing the port on which the server is running. If the server is running on the same machine as the client <hostname> can usually be "localhost".
Returns NIL if the connection cannot be opened, an integer socket number if the connection was successfully established.