connect \- connects a socket
int connect(int \fIsd\fP, const struct sockaddr * \fIaddr\fP, socklen_t \fIaddr_len\fP);
connect() connects the socket \fIsd\fP to a socket listening at
On success, this function returns 0. On error, -1 is returned and
The address pointed to by \fIaddr\fP is not in a
valid part of the process address space.
The address family of the address pointed to by
\fIaddr\fP is not supported by this function.
The address pointed to by \fIaddr\fP is not valid.
The sun_path in struct sockaddr_un is too long.
The calling process doesn't have permission to perform
The socket is already connected.
The socket is already in the process of connecting.
The connection was refused.