Function nrfxlib_sys::nrf_listen [−][src]
pub unsafe extern "C" fn nrf_listen(sock: c_int, backlog: c_int) -> c_int
Function to put the socket in listening mode for incoming connections.
s Once a socket is marked to be in the listening state, it remains a listening socket until closed. It is important to consider the backlog parameter, as it will affect how much memory your application will use in the worst case.
sock
- The socket descriptor on which to set the listening options.backlog
- The max length of the queue of pending connections. A value of 0 means infinite.
Returns 0 on success, or -1 on error.