Lines Matching refs:timeout
312 BNetEndpoint::SetTimeout(bigtime_t timeout)
314 fTimeout = timeout < 0 ? B_INFINITE_TIMEOUT : timeout;
434 BNetEndpoint::Accept(int32 timeout)
436 if (!IsDataPending(timeout < 0 ? B_INFINITE_TIMEOUT : 1000LL * timeout))
475 BNetEndpoint::IsDataPending(bigtime_t timeout)
483 // Make sure the timeout does not overflow. If it does, have an infinite
484 // timeout instead. Note that this conveniently includes B_INFINITE_TIMEOUT.
485 if (timeout > INT32_MAX * 1000000ll)
486 timeout = -1;
488 if (timeout >= 0) {
489 tv.tv_sec = timeout / 1000000;
490 tv.tv_usec = (timeout % 1000000);
496 timeout >= 0 ? &tv : NULL);