Bind the socket to an address. The socket must not already be bound.
The Family passed to bind must be the same as that
passed to socket. If the special port number
defaultPort is passed then the system assigns the next
available use port.
Bind the socket to an address. The socket must not already be bound.
The Family passed to bind must be the same as that
passed to socket. If the special port number defaultPort
is passed then the system assigns the next available use port.
Binds parameters to a prepared statement. Once nextRow returns
Nothing, the statement must be reset with the reset
function before it can be executed again by calling nextRow.
Calling bind on a closed socket throws
eBadFileDescriptor even if the former file descriptor has been
reassigned.
It is assumed that bind never blocks and therefore
eInProgress, eAlready and eInterrupted don't
occur. This assumption is supported by the fact that the Linux manpage
doesn't mention any of these errors, the Posix manpage doesn't mention
the last one and even MacOS' implementation will never fail with any
of these when the socket is configured non-blocking as argued
here.
This operation throws SocketExceptions. Consult your
man page for details and specific errnos.