Lines Matching defs:nread
155 ssize_t nread;
179 nread = recvmmsg(handle->io_watcher.fd, msgs, chunks, 0, NULL);
180 while (nread == -1 && errno == EINTR);
182 if (nread < 1) {
183 if (nread == 0 || errno == EAGAIN || errno == EWOULDBLOCK)
189 for (k = 0; k < (size_t) nread && handle->recv_cb != NULL; k++) {
206 return nread;
215 ssize_t nread;
238 nread = uv__udp_recvmmsg(handle, &buf);
239 if (nread > 0)
240 count -= nread;
252 nread = recvmsg(handle->io_watcher.fd, &h, 0);
254 while (nread == -1 && errno == EINTR);
256 if (nread == -1) {
267 handle->recv_cb(handle, nread, &buf, (const struct sockaddr*) &peer, flags);
272 while (nread != -1