Contents

sock_bind

Declaration

errno_t sock_bind(socket_t so, const struct sockaddr *to);

Parameters

  • so:

    The socket to be bound.

  • to:

    The local address the socket should be bound to.

Return Value

0 on success otherwise the errno error.

Discussion

Binds a socket to a specific address. See 'man 2 bind' for more information.

See Also

Network Kernel Extensions