pub unsafe extern "C" fn apr_socket_timeout_set(
sock: *mut apr_socket_t,
t: apr_interval_time_t,
) -> apr_status_tExpand description
Setup socket timeout for the specified socket @param sock The socket to set up. @param t Value for the timeout.
t > 0 -- read and write calls return APR_TIMEUP if specified time
elapsess with no data read or written
t == 0 -- read and write calls never block
t < 0 -- read and write calls block