This function does the same thing as the
system call - see
The function initiates a connection with another process
that is waiting at an
The function returns true if it succeeded, false otherwise (and puts
the error code into
should be a packed network address of the proper type for the socket.
connect S, $destadd or die "Can't connect to $hostname: $!\n";
To disconnect a socket, either close or shutdown. See also the example in the section "Sockets" in Chapter 6.