pub unsafe extern "C" fn aws_tls_alpn_handler_new(
allocator: *mut aws_allocator,
on_protocol_negotiated: aws_tls_on_protocol_negotiated,
user_data: *mut c_void
) -> *mut aws_channel_handler
Expand description
Creates a channel handler, for client or server mode, that handles alpn. This isn’t necessarily required since you can always call aws_tls_handler_protocol in the aws_tls_on_negotiation_result_fn callback, but this makes channel bootstrap easier to handle.