The packed address was explained in "The Server Side of a
Conversation." The SOCKET
parameter has no relation to the name used on the server machine.
I use SOCKET on both sides
for convenience.

The connect() function is
a blocking function. This means that it will wait until
the connection is completed. You can use the select()
function to set non-blocking mode, but you'll need to look in
the UNIX documentation to find out how. It's a bit complicated
to explain here.

After the connection is made, you use the normal input/output
functions or the send() and
recv() functions to talk
with the server.