Function gnunet_sys::GNUNET_NETWORK_socket_accept [−][src]
pub unsafe extern "C" fn GNUNET_NETWORK_socket_accept(
desc: *const GNUNET_NETWORK_Handle,
address: *mut sockaddr,
address_len: *mut socklen_t
) -> *mut GNUNET_NETWORK_Handle
Accept a new connection on a socket. Configure it for non-blocking IO and mark it as non-inheritable to child processes (set the close-on-exec flag).
@param desc bound socket @param address address of the connecting peer, may be NULL @param address_len length of address @return client socket