Skip to main content

apr_socket_protocol_get

Function apr_socket_protocol_get 

Source
pub unsafe extern "C" fn apr_socket_protocol_get(
    sock: *mut apr_socket_t,
    protocol: *mut c_int,
) -> apr_status_t
Expand description

Return the protocol of the socket. @param sock The socket to query. @param protocol The returned protocol (e.g., APR_PROTO_TCP).