Function gnunet_sys::GNUNET_NETWORK_socket_create[][src]

pub unsafe extern "C" fn GNUNET_NETWORK_socket_create(
    domain: c_int,
    type_: c_int,
    protocol: c_int
) -> *mut GNUNET_NETWORK_Handle

Create a new socket. Configure it for non-blocking IO and mark it as non-inheritable to child processes (set the close-on-exec flag).

@param domain domain of the socket @param type socket type @param protocol network protocol @return new socket, NULL on error