Home
last modified time | relevance | path

Searched refs:toSend (Results 1 – 7 of 7) sorted by relevance

/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dnetwork_write.c36 off_t toSend; in network_write_chunkqueue_write() local
45 toSend = c->mem->used - 1 - c->offset; in network_write_chunkqueue_write()
46 if (toSend > max_bytes) toSend = max_bytes; in network_write_chunkqueue_write()
49 if ((r = send(fd, offset, toSend, 0)) < 0) { in network_write_chunkqueue_write()
56 if ((r = write(fd, offset, toSend)) < 0) { in network_write_chunkqueue_write()
90 off_t toSend; in network_write_chunkqueue_write() local
101 toSend = c->file.length - c->offset; in network_write_chunkqueue_write()
103 if (toSend > max_bytes) toSend = max_bytes; in network_write_chunkqueue_write()
127 if ((r = write(fd, p + offset, toSend)) <= 0) { in network_write_chunkqueue_write()
148 buffer_prepare_copy(srv->tmp_buf, toSend); in network_write_chunkqueue_write()
[all …]
H A Dnetwork_mtcp_writev.c42 off_t toSend;
97 num_bytes += toSend;
154 off_t toSend;
274 if (toSend < 0) {
277 toSend,
284 if (toSend > max_bytes) toSend = max_bytes;
355 off_t toSend; in network_write_chunkqueue_mtcp_writev() local
365 if (toSend > max_bytes) toSend = max_bytes; in network_write_chunkqueue_mtcp_writev()
409 off_t toSend; in network_write_chunkqueue_mtcp_writev() local
422 if (toSend > max_bytes) toSend = max_bytes; in network_write_chunkqueue_mtcp_writev()
[all …]
H A Dnetwork_openssl.c67 off_t toSend; in network_write_chunkqueue_openssl() local
76 toSend = c->mem->used - 1 - c->offset; in network_write_chunkqueue_openssl()
77 if (toSend > max_bytes) toSend = max_bytes; in network_write_chunkqueue_openssl()
90 r = SSL_write(ssl, offset, toSend); in network_write_chunkqueue_openssl()
178 off_t toSend = c->file.length - c->offset; in network_write_chunkqueue_openssl() local
179 if (toSend > max_bytes) toSend = max_bytes; in network_write_chunkqueue_openssl()
181 if (toSend > LOCAL_SEND_BUFSIZE) toSend = LOCAL_SEND_BUFSIZE; in network_write_chunkqueue_openssl()
191 if (-1 == (toSend = read(ifd, local_send_buffer, toSend))) { in network_write_chunkqueue_openssl()
202 r = SSL_write(ssl, s, toSend); in network_write_chunkqueue_openssl()
H A Dnetwork_freebsd_sendfile.c43 off_t toSend; in network_write_chunkqueue_freebsdsendfile() local
64 toSend = tc->mem->used - 1 - tc->offset; in network_write_chunkqueue_freebsdsendfile()
69 if (toSend > max_bytes || in network_write_chunkqueue_freebsdsendfile()
70 (off_t) num_bytes + toSend > max_bytes) { in network_write_chunkqueue_freebsdsendfile()
76 chunks[i].iov_len = toSend; in network_write_chunkqueue_freebsdsendfile()
79 num_bytes += toSend; in network_write_chunkqueue_freebsdsendfile()
134 off_t toSend; in network_write_chunkqueue_freebsdsendfile() local
144 toSend = c->file.length - c->offset; in network_write_chunkqueue_freebsdsendfile()
145 if (toSend > max_bytes) toSend = max_bytes; in network_write_chunkqueue_freebsdsendfile()
162 if (-1 == sendfile(c->file.fd, fd, offset, toSend, NULL, &r, 0)) { in network_write_chunkqueue_freebsdsendfile()
H A Dnetwork_solaris_sendfilev.c50 off_t toSend; in network_write_chunkqueue_solarissendfilev() local
74 toSend = tc->mem->used - 1 - tc->offset; in network_write_chunkqueue_solarissendfilev()
79 if (toSend > max_bytes || in network_write_chunkqueue_solarissendfilev()
80 (off_t) num_bytes + toSend > max_bytes) { in network_write_chunkqueue_solarissendfilev()
86 chunks[i].iov_len = toSend; in network_write_chunkqueue_solarissendfilev()
89 num_bytes += toSend; in network_write_chunkqueue_solarissendfilev()
140 off_t offset, toSend; in network_write_chunkqueue_solarissendfilev() local
153 toSend = c->file.length - c->offset; in network_write_chunkqueue_solarissendfilev()
154 if (toSend > max_bytes) toSend = max_bytes; in network_write_chunkqueue_solarissendfilev()
171 fvec.sfv_len = toSend; in network_write_chunkqueue_solarissendfilev()
H A Dnetwork_linux_sendfile.c39 off_t toSend; in network_write_chunkqueue_linuxsendfile() local
62 toSend = tc->mem->used - 1 - tc->offset; in network_write_chunkqueue_linuxsendfile()
67 if (toSend > max_bytes || in network_write_chunkqueue_linuxsendfile()
68 (off_t) num_bytes + toSend > max_bytes) { in network_write_chunkqueue_linuxsendfile()
74 chunks[i].iov_len = toSend; in network_write_chunkqueue_linuxsendfile()
77 num_bytes += toSend; in network_write_chunkqueue_linuxsendfile()
130 off_t toSend; in network_write_chunkqueue_linuxsendfile() local
134 toSend = c->file.length - c->offset; in network_write_chunkqueue_linuxsendfile()
135 if (toSend > max_bytes) toSend = max_bytes; in network_write_chunkqueue_linuxsendfile()
158 if (-1 == (r = sendfile(fd, c->file.fd, &offset, toSend))) { in network_write_chunkqueue_linuxsendfile()
H A Dnetwork_writev.c42 off_t toSend; in network_write_chunkqueue_writev() local
82 toSend = tc->mem->used - 1 - tc->offset; in network_write_chunkqueue_writev()
87 if (toSend > max_bytes || in network_write_chunkqueue_writev()
88 (off_t) num_bytes + toSend > max_bytes) { in network_write_chunkqueue_writev()
94 chunks[i].iov_len = toSend; in network_write_chunkqueue_writev()
97 num_bytes += toSend; in network_write_chunkqueue_writev()
154 off_t toSend; in network_write_chunkqueue_writev() local
274 if (toSend < 0) { in network_write_chunkqueue_writev()
277 toSend, in network_write_chunkqueue_writev()
281 assert(toSend < 0); in network_write_chunkqueue_writev()
[all …]