Lines Matching defs:filebytes
270 PRInt32 bytes, descbytes, filebytes, netbytes;
313 filebytes = sizeof(buffer);
314 if ((descbytes - netbytes) < filebytes)
315 filebytes = descbytes - netbytes;
318 ("\tClient(0x%p): sending %d bytes\n", me, filebytes));
319 bytes = PR_Send(fd, buffer, filebytes, SEND_FLAGS, timeout);
320 if (filebytes != bytes)
331 TEST_ASSERT(bytes == filebytes);
334 filebytes = 0;
335 while (filebytes < descbytes)
338 if ((descbytes - filebytes) < netbytes)
339 netbytes = descbytes - filebytes;
372 filebytes += bytes;
416 PRInt32 bytes, descbytes, netbytes, filebytes = 0;
469 filebytes = 0;
470 while (filebytes < descbytes)
473 if ((descbytes - filebytes) < netbytes)
474 netbytes = descbytes - filebytes;
509 filebytes += bytes;
534 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;