version 1.266, 2017/10/25 00:17:08 |
version 1.267, 2017/11/25 06:46:22 |
|
|
for (;;) { |
for (;;) { |
if (state->packet_timeout_ms != -1) { |
if (state->packet_timeout_ms != -1) { |
ms_to_timeval(&timeout, ms_remain); |
ms_to_timeval(&timeout, ms_remain); |
gettimeofday(&start, NULL); |
monotime_tv(&start); |
} |
} |
if ((r = select(state->connection_in + 1, setp, |
if ((r = select(state->connection_in + 1, setp, |
NULL, NULL, timeoutp)) >= 0) |
NULL, NULL, timeoutp)) >= 0) |
|
|
for (;;) { |
for (;;) { |
if (state->packet_timeout_ms != -1) { |
if (state->packet_timeout_ms != -1) { |
ms_to_timeval(&timeout, ms_remain); |
ms_to_timeval(&timeout, ms_remain); |
gettimeofday(&start, NULL); |
monotime_tv(&start); |
} |
} |
if ((ret = select(state->connection_out + 1, |
if ((ret = select(state->connection_out + 1, |
NULL, setp, NULL, timeoutp)) >= 0) |
NULL, setp, NULL, timeoutp)) >= 0) |