Lines Matching refs:bytes
124 int bytes;
128 for (rem=len; rem; offset += bytes, rem -= bytes) {
129 DPRINTF(("thread = 0x%lx: calling PR_Recv, bytes = %d\n",
131 bytes = PR_Recv(sockfd, buf + offset, rem, 0,
133 DPRINTF(("thread = 0x%lx: returning from PR_Recv, bytes = %d\n",
134 PR_GetCurrentThread(), bytes));
135 if (bytes < 0) {
150 int bytes;
153 for (rem=len; rem; offset += bytes, rem -= bytes) {
154 DPRINTF(("thread = 0x%lx: calling PR_Send, bytes = %d\n",
156 bytes = PR_Send(sockfd, buf + offset, rem, 0,
158 DPRINTF(("thread = 0x%lx: returning from PR_Send, bytes = %d\n",
159 PR_GetCurrentThread(), bytes));
160 if (bytes <= 0)
181 PRInt32 bytes, i, j;
185 bytes = cp->datalen;
220 memset(out_buf->data, ((PRInt32) (&netaddr)) + i + j, bytes);
224 if (writen(sockfd, out_buf->data, bytes) < bytes) {
233 if (readn(sockfd, in_buf->data, bytes) < bytes) {
241 if (memcmp(in_buf->data, out_buf->data, bytes) != 0) {