Lines Matching refs:offset

100   size_t offset;     /* size of the incoming request */  member
376 logmsg("Process %zu bytes request%s", req->offset, in ProcessRequest()
547 else if((req->offset >= 3)) { in ProcessRequest()
751 req->reqbuf + req->offset > end + strlen(end_of_headers) && in ProcessRequest()
777 if(req->cl <= req->offset - (end - req->reqbuf) - strlen(end_of_headers)) in ProcessRequest()
846 req->offset = 0; in init_httprequest()
887 reqbuf[req->offset] = '\0'; in get_request()
888 storerequest(reqbuf, req->offset); in get_request()
889 req->offset = 0; in get_request()
895 got = sread(sock, reqbuf + req->offset, REQBUFSIZ - req->offset); in get_request()
897 req->offset += got; in get_request()
925 if(req->offset) { in get_request()
928 reqbuf[req->offset] = '\0'; in get_request()
929 storerequest(reqbuf, req->offset); in get_request()
930 req->offset = 0; in get_request()
937 if(req->offset >= REQBUFSIZ-1) { in get_request()
946 got = sread(sock, reqbuf + req->offset, req->cl); in get_request()
948 got = sread(sock, reqbuf + req->offset, REQBUFSIZ-1 - req->offset); in get_request()
967 reqbuf[req->offset] = '\0'; in get_request()
968 storerequest(reqbuf, req->offset); in get_request()
974 req->offset += (size_t)got; in get_request()
975 reqbuf[req->offset] = '\0'; in get_request()
982 if(overflow || (req->offset == REQBUFSIZ-1 && got > 0)) { in get_request()
988 else if(req->offset > REQBUFSIZ-1) { in get_request()
995 reqbuf[req->offset] = '\0'; in get_request()
999 storerequest(reqbuf, req->offset); in get_request()