pub unsafe extern "C" fn switch_socket_timeout_get(
sock: *mut switch_socket_t,
t: *mut switch_interval_time_t,
) -> switch_status_tExpand description
Query socket timeout for the specified socket @param sock The socket to query @param t Socket timeout returned from the query.
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