Lines Matching refs:resbuf
220 readln(int sd, char * resbuf, int * resbuflen, int * resbufpos) in readln() argument
224 while (strnstr(resbuf + *resbufpos, "\r\n", in readln()
228 memmove(resbuf, resbuf + *resbufpos, in readln()
239 len = recv(sd, resbuf + *resbuflen, BUFSIZ - *resbuflen, 0); in readln()
252 copybytes(int sd, int fd, off_t copylen, char * resbuf, int * resbuflen, in copybytes() argument
264 len = write(fd, resbuf + *resbufpos, len); in copybytes()
273 len = recv(sd, resbuf, BUFSIZ, 0); in copybytes()
295 char * resbuf = NULL; /* Response buffer */ in main() local
334 resbuf = malloc(BUFSIZ); in main()
335 if (resbuf == NULL) in main()
456 error = readln(sd, resbuf, &resbuflen, &resbufpos); in main()
459 hln = resbuf + resbufpos; in main()
461 resbufpos = (eolp - resbuf) + 2; in main()
608 error = readln(sd, resbuf, &resbuflen, in main()
612 hln = resbuf + resbufpos; in main()
614 resbufpos = (eolp - resbuf) + 2; in main()
630 error = copybytes(sd, fd, clen, resbuf, in main()
639 error = readln(sd, resbuf, &resbuflen, in main()
643 hln = resbuf + resbufpos; in main()
645 resbufpos = (eolp - resbuf) + 2; in main()
648 error = copybytes(sd, fd, contentlength, resbuf, in main()
658 error = copybytes(sd, fd, OFF_MAX, resbuf, in main()
725 free(resbuf); in main()