bind \- binds an address to a socket
int bind(int \fIsd\fP, const struct sockaddr * \fIaddr\fP, socklen_t \fIaddr_len\fP);
bind() specifies the \fIaddr\fP (IP address and port for PF_INET or path for PF_UNIX)
to assign to socket \fIsd\fP.
On success, this function returns 0. On error, -1 is returned and
The socket type is not supported by bind().
The address family is not supported by bind().
The address is not available.
The sun_path in struct sockaddr_un is too long.
The address is already bound to the socket.
The argument \fIsd\fP is not a descriptor.
The argument \fIsd\fP is a descriptor, but not a socket descriptor.
The address pointed to by \fIaddr\fP is not in a
valid part of the process address space.