Lines Matching refs:bytes
508 ssize_t bytes, sent;
515 bytes = recv(sk, buf, sizeof(buf), 0);
517 if (bytes < 0)
518 test_error("recv(): %zd", bytes);
519 if (bytes == 0)
526 sent = send(sk, buf, bytes, 0);
529 if (sent != bytes)
531 total += bytes;
548 size_t sent, bytes = min(msg_len, buf_sz - i);
555 sent = send(sk, buf + i, bytes, 0);
558 if (sent != bytes)
561 bytes = 0;
569 got = recv(sk, msg + bytes, sizeof(msg) - bytes, 0);
572 bytes += got;
573 } while (bytes < sent);
574 if (bytes > sent)
575 test_error("recv(): %zd > %zd", bytes, sent);
576 if (memcmp(buf + i, msg, bytes) != 0) {