Home | History | Annotate | Download | only in fastboot

Lines Matching refs:timeout_ms

51 ssize_t Socket::ReceiveAll(void* data, size_t length, int timeout_ms) {
55 ssize_t bytes = Receive(reinterpret_cast<char*>(data) + total, length - total, timeout_ms);
77 bool Socket::WaitForRecv(int timeout_ms) {
80 // In our usage |timeout_ms| <= 0 means block forever, so just return true immediately and let
82 if (timeout_ms <= 0) {
86 // select() doesn't always check this case and will block for |timeout_ms| if we let it.
96 timeout.tv_sec = timeout_ms / 1000;
97 timeout.tv_usec = (timeout_ms % 1000) * 1000;
116 ssize_t Receive(void* data, size_t length, int timeout_ms) override;
151 ssize_t UdpSocket::Receive(void* data, size_t length, int timeout_ms) {
152 if (!WaitForRecv(timeout_ms)) {
174 ssize_t Receive(void* data, size_t length, int timeout_ms) override;
230 ssize_t TcpSocket::Receive(void* data, size_t length, int timeout_ms) {
231 if (!WaitForRecv(timeout_ms)) {