Lines Matching refs:timeout_ms
51 ssize_t Socket::ReceiveAll(void* data, size_t length, int timeout_ms) { in ReceiveAll() argument
55 ssize_t bytes = Receive(reinterpret_cast<char*>(data) + total, length - total, timeout_ms); in ReceiveAll()
79 bool Socket::WaitForRecv(int timeout_ms) { in WaitForRecv() argument
84 if (timeout_ms <= 0) { in WaitForRecv()
98 timeout.tv_sec = timeout_ms / 1000; in WaitForRecv()
99 timeout.tv_usec = (timeout_ms % 1000) * 1000; in WaitForRecv()
118 ssize_t Receive(void* data, size_t length, int timeout_ms) override;
153 ssize_t UdpSocket::Receive(void* data, size_t length, int timeout_ms) { in Receive() argument
154 if (!WaitForRecv(timeout_ms)) { in Receive()
176 ssize_t Receive(void* data, size_t length, int timeout_ms) override;
232 ssize_t TcpSocket::Receive(void* data, size_t length, int timeout_ms) { in Receive() argument
233 if (!WaitForRecv(timeout_ms)) { in Receive()