Lines Matching defs:filebytes
268 PRInt32 bytes, descbytes, filebytes, netbytes;
312 filebytes = sizeof(buffer);
313 if ((descbytes - netbytes) < filebytes)
314 filebytes = descbytes - netbytes;
317 ("\tClient(0x%p): sending %d bytes\n", me, filebytes));
318 bytes = PR_Send(fd, buffer, filebytes, SEND_FLAGS, timeout);
319 if (filebytes != bytes)
330 TEST_ASSERT(bytes == filebytes);
333 filebytes = 0;
334 while (filebytes < descbytes)
337 if ((descbytes - filebytes) < netbytes)
338 netbytes = descbytes - filebytes;
371 filebytes += bytes;
415 PRInt32 bytes, descbytes, netbytes, filebytes = 0;
468 filebytes = 0;
469 while (filebytes < descbytes)
472 if ((descbytes - filebytes) < netbytes)
473 netbytes = descbytes - filebytes;
508 filebytes += bytes;
533 server->bytesTransferred += filebytes;
568 filebytes = sizeof(buffer);
569 if ((descbytes - netbytes) < filebytes)
570 filebytes = descbytes - netbytes;
573 ("\tProcessRequest(0x%p): read %d bytes from file\n", me, filebytes));
574 bytes = PR_Read(file, buffer, filebytes);
575 if (filebytes != bytes)
592 filebytes = bytes;
595 ("\t\tProcessRequest(0x%p): sending %d bytes\n", me, filebytes));
596 bytes = PR_Send(fd, buffer, filebytes, SEND_FLAGS, timeout);
597 if (filebytes != bytes)
614 server->bytesTransferred += filebytes;