Function nrfxlib_sys::nrf_bind[][src]

pub unsafe extern "C" fn nrf_bind(
    sock: c_int,
    p_myaddr: *const c_void,
    addrlen: nrf_socklen_t
) -> c_int

Function for binding a socket to an address and port.

s The provided address must be supported by the socket protocol family.

  • sock - The socket descriptor to bind.
  • p_myaddr - The address to bind this socket to.
  • addrlen - The size of p_myaddr.

Returns 0 on success, or -1 on error.