Home
last modified time | relevance | path

Searched refs:iov (Results 1 – 13 of 13) sorted by relevance

/unit/src/
H A Dnxt_fs_mount.c88 struct iovec iov[128]; in nxt_fs_mount() local
134 iov[0].iov_base = (void *) "fstype"; in nxt_fs_mount()
135 iov[0].iov_len = 7; in nxt_fs_mount()
136 iov[1].iov_base = (void *) fsname; in nxt_fs_mount()
138 iov[2].iov_base = (void *) "fspath"; in nxt_fs_mount()
139 iov[2].iov_len = 7; in nxt_fs_mount()
140 iov[3].iov_base = (void *) mnt->dst; in nxt_fs_mount()
143 iov[4].iov_len = 7; in nxt_fs_mount()
147 iov[6].iov_len = 7; in nxt_fs_mount()
148 iov[7].iov_base = (void *) errmsg; in nxt_fs_mount()
[all …]
H A Dnxt_hpux_sendfile.c41 struct iovec iov[NXT_IOBUF_MAX], *hdtrl; in nxt_hpux_event_conn_io_sendfile() local
45 sb.iobuf = iov; in nxt_hpux_event_conn_io_sendfile()
58 return nxt_event_conn_io_writev(c, iov, nhd); in nxt_hpux_event_conn_io_sendfile()
66 return nxt_event_conn_io_writev(c, iov, nhd); in nxt_hpux_event_conn_io_sendfile()
69 sb.iobuf = &iov[1]; in nxt_hpux_event_conn_io_sendfile()
81 iov[0].iov_base = NULL; in nxt_hpux_event_conn_io_sendfile()
82 iov[0].iov_len = 0; in nxt_hpux_event_conn_io_sendfile()
85 hdtrl = iov; in nxt_hpux_event_conn_io_sendfile()
89 iov[1].iov_base = NULL; in nxt_hpux_event_conn_io_sendfile()
90 iov[1].iov_len = 0; in nxt_hpux_event_conn_io_sendfile()
[all …]
H A Dnxt_conn_read.c137 struct iovec iov[NXT_IOBUF_MAX]; in nxt_conn_io_recvbuf() local
141 rb.iobuf = iov; in nxt_conn_io_recvbuf()
149 return nxt_conn_io_recv(c, iov->iov_base, iov->iov_len, 0); in nxt_conn_io_recvbuf()
153 n = readv(c->socket.fd, iov, niov); in nxt_conn_io_recvbuf()
H A Dnxt_port_socket.c404 iov[0].iov_base = &msg->port_msg; in nxt_port_write_handler()
408 sb.iobuf = &iov[1]; in nxt_port_write_handler()
426 sb.limit -= iov[0].iov_len; in nxt_port_write_handler()
739 struct iovec iov[2]; in nxt_port_read_handler() local
752 iov[0].iov_base = &msg.port_msg; in nxt_port_read_handler()
755 iov[1].iov_base = b->mem.pos; in nxt_port_read_handler()
756 iov[1].iov_len = port->max_size; in nxt_port_read_handler()
818 struct iovec iov[2]; in nxt_port_queue_read_handler() local
904 iov[0].iov_base = &msg.port_msg; in nxt_port_queue_read_handler()
907 iov[1].iov_base = b->mem.pos; in nxt_port_queue_read_handler()
[all …]
H A Dnxt_linux_sendfile.c55 struct iovec iov[NXT_IOBUF_MAX]; in nxt_linux_event_conn_io_sendfile() local
59 sb.iobuf = iov; in nxt_linux_event_conn_io_sendfile()
90 return nxt_linux_send(c, iov->iov_base, iov->iov_len, flags); in nxt_linux_event_conn_io_sendfile()
H A Dnxt_sendbuf.c18 struct iovec *iov, nxt_uint_t niov_max) in nxt_sendbuf_mem_coalesce0() argument
57 iov[n].iov_base = b->mem.pos; in nxt_sendbuf_mem_coalesce0()
58 iov[n].iov_len = size; in nxt_sendbuf_mem_coalesce0()
61 iov[n].iov_len += size; in nxt_sendbuf_mem_coalesce0()
65 n, iov[n].iov_base, iov[n].iov_len); in nxt_sendbuf_mem_coalesce0()
H A Dnxt_conn_write.c167 struct iovec iov[NXT_IOBUF_MAX]; in nxt_conn_io_sendbuf() local
169 niov = nxt_sendbuf_mem_coalesce0(task, sb, iov, NXT_IOBUF_MAX); in nxt_conn_io_sendbuf()
179 return nxt_conn_io_writev(task, sb, iov, niov); in nxt_conn_io_sendbuf()
297 nxt_conn_io_writev(nxt_task_t *task, nxt_sendbuf_t *sb, struct iovec *iov, in nxt_conn_io_writev() argument
305 return nxt_conn_io_send(task, sb, iov[0].iov_base, iov[0].iov_len); in nxt_conn_io_writev()
309 n = writev(sb->socket, iov, niov); in nxt_conn_io_writev()
H A Dnxt_sendbuf.h111 struct iovec *iov, nxt_uint_t niov_max);
H A Dnxt_gnutls.c43 const giovec_t *iov, int iovcnt);
398 nxt_gnutls_vec_push(gnutls_transport_ptr_t data, const giovec_t *iov, in nxt_gnutls_vec_push() argument
412 n = thr->engine->event->io->writev(c, (nxt_iobuf_t *) iov, iovcnt); in nxt_gnutls_vec_push()
H A Dnxt_unit.h326 uint8_t last, const struct iovec *iov, int iovcnt);
H A Dnxt_openssl.c1370 struct iovec iov; local
1372 niov = nxt_sendbuf_mem_coalesce0(task, sb, &iov, 1);
1378 return nxt_openssl_conn_io_send(task, sb, iov.iov_base, iov.iov_len);
H A Dnxt_unit.c3346 payload_len += iov[i].iov_len; in nxt_unit_websocket_sendv()
3373 b = iov[i].iov_base; in nxt_unit_websocket_sendv()
3374 l = iov[i].iov_len; in nxt_unit_websocket_sendv()
6000 struct iovec iov[1]; in nxt_unit_sendmsg() local
6002 iov[0].iov_base = (void *) buf; in nxt_unit_sendmsg()
6003 iov[0].iov_len = buf_size; in nxt_unit_sendmsg()
6007 n = nxt_sendmsg(fd, iov, 1, oob); in nxt_unit_sendmsg()
6196 struct iovec iov[1]; in nxt_unit_port_recv() local
6219 iov[0].iov_base = rbuf->buf; in nxt_unit_port_recv()
6220 iov[0].iov_len = sizeof(rbuf->buf); in nxt_unit_port_recv()
[all …]
/unit/src/nodejs/unit-http/
H A Dunit.cpp1049 struct iovec iov[2]; in websocket_send_frame() local
1066 iov[iovec_len].iov_base = status_code; in websocket_send_frame()
1067 iov[iovec_len].iov_len = 2; in websocket_send_frame()
1081 iov[iovec_len].iov_base = napi.get_buffer_info(payload, buf_len); in websocket_send_frame()
1093 iov[iovec_len].iov_len = buf_len; in websocket_send_frame()
1097 ret = nxt_unit_websocket_sendv(req, opcode, fin ? 1 : 0, iov, iovec_len); in websocket_send_frame()