Function nrfxlib_sys::nrf_accept[][src]

pub unsafe extern "C" fn nrf_accept(
    sock: c_int,
    p_cliaddr: *mut c_void,
    p_addrlen: *mut nrf_socklen_t
) -> c_int

Function for waiting for the next client to connect.

s This function will block if there are no clients attempting to connect.

  • sock - The socket descriptor to use for waiting on client connections.
  • p_cliaddr - Socket address that will be set to the client's address.
  • p_addrlen - The size of the p_cliaddr passed. Might be modified by the function.

Returns A non-negative client descriptor on success, or -1 on error.