pub unsafe extern "C" fn aws_socket_handler_new(
    allocator: *mut aws_allocator,
    socket: *mut aws_socket,
    slot: *mut aws_channel_slot,
    max_read_size: usize
) -> *mut aws_channel_handler
Expand description

Socket handlers should be the first slot/handler in a channel. It interacts directly with the channel’s event loop for read and write notifications. max_read_size is the maximum amount of data it will read from the socket before a context switch (a continuation task will be scheduled).