Lines Matching refs:timeout
199 /* Read current socket timeout */
201 int timeout;
203 (void*)&timeout, &sz) < 0)
207 data->socket_timeout.tv_sec = timeout / 1000;
208 data->socket_timeout.tv_usec = (timeout % 1000) * 1000;
235 /* Adjust socket timeout if next handhake message timer
244 timeout = timeleft.tv_sec * 1000 + timeleft.tv_usec / 1000;
246 (void*)&timeout, sizeof(timeout)) < 0)
267 int timeout = data->socket_timeout.tv_sec * 1000 +
270 (void*)&timeout, sizeof(timeout)) < 0)
630 int timeout = tv->tv_sec * 1000 + tv->tv_usec/1000;
632 (void*)&timeout, sizeof(timeout)) < 0)
644 int timeout, sz = sizeof(timeout);
647 (void*)&timeout, &sz) < 0)
651 tv->tv_sec = timeout / 1000;
652 tv->tv_usec = (timeout % 1000) * 1000;
668 int timeout = tv->tv_sec * 1000 + tv->tv_usec/1000;
670 (void*)&timeout, sizeof(timeout)) < 0)
682 int timeout, sz = sizeof(timeout);
685 (void*)&timeout, &sz) < 0)
689 tv->tv_sec = timeout / 1000;
690 tv->tv_usec = (timeout % 1000) * 1000;