Home | History | Annotate | Download | only in src

Lines Matching defs:read

75 // make non-blocking mode only during read. This allows supporting time-out for read
96 int read;
112 LOGE("socket read timeout");
117 read = recv(mSocket, (void*)data, toRead, 0);
118 if (read > 0) {
119 toRead -= read;
120 data += read;
121 } else if (read == 0) {
122 // in blocking mode, zero read mean's peer closed.
124 LOGE("zero read, peer closed or what?, nonblocking: %d", useTimeout);
128 LOGE("recv returned %d", read);