Lines Matching refs:nbytes
81 int nbytes, rindex; member
132 conn->nbytes = conn->rindex = 0; in eph_new_conn()
294 int nbytes; in eph_read_data() local
296 if (conn->rindex && conn->rindex < conn->nbytes) { in eph_read_data()
298 conn->nbytes - conn->rindex); in eph_read_data()
299 conn->nbytes -= conn->rindex; in eph_read_data()
301 conn->nbytes = 0; in eph_read_data()
305 if ((nbytes = eph_read(conn, conn->buffer + conn->nbytes, in eph_read_data()
306 sizeof(conn->buffer) - conn->nbytes)) <= 0) in eph_read_data()
309 conn->nbytes += nbytes; in eph_read_data()
332 if (conn->nbytes > conn->rindex) { in eph_read_line()
334 conn->nbytes - conn->rindex))) { in eph_read_line()
659 if ((ava = conn->nbytes - conn->rindex) > 0) { in eph_http_session()
909 int nbytes, totbytes = 0; in eph_pipe_session() local
912 while ((nbytes = eph_read(conn, buff, sizeof(buff))) > 0) { in eph_pipe_session()
913 fprintf(stdout, "[%p] %d bytes readed\n", conn, nbytes), in eph_pipe_session()
915 totbytes += nbytes; in eph_pipe_session()