Sockets Toolkit - connect
- Loadable Function: connect
(s, serverinfo) Connect socket.
Connects the socket s following the information in the struct serverinfo which must contain the following fields:
addra string with the host name to connect to
portthe port number to connect to (an integer)
On successful connect, the returned status is zero.
See the
connectman pages for further details.