pub unsafe extern "C" fn aws_socket_assign_to_event_loop(
    socket: *mut aws_socket,
    event_loop: *mut aws_event_loop
) -> c_int
Expand description

Assigns the socket to the event-loop. The socket will begin receiving read/write/error notifications after this call.

Note: If you called connect for TCP or Unix Domain Sockets and received a connection_success callback, this has already happened. You only need to call this function when:

a.) This socket is a server socket (e.g. a result of a call to start_accept()) b.) This socket is a UDP socket.