summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_kqueue_engine.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2018-09-20 15:05:37 +0300
committerIgor Sysoev <igor@sysoev.ru>2018-09-20 15:05:37 +0300
commit96cd68b34037f8b6d9a1d43f67b8fe7c1df2ef9e (patch)
tree8e648712993012fbe815cc92e6debab20449fe8f /src/nxt_kqueue_engine.c
parente964e982fd64505fb8644f91e5c57a869038cd18 (diff)
downloadunit-96cd68b34037f8b6d9a1d43f67b8fe7c1df2ef9e.tar.gz
unit-96cd68b34037f8b6d9a1d43f67b8fe7c1df2ef9e.tar.bz2
Added SSL/TLS support on connection level.
Diffstat (limited to 'src/nxt_kqueue_engine.c')
-rw-r--r--src/nxt_kqueue_engine.c26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/nxt_kqueue_engine.c b/src/nxt_kqueue_engine.c
index 378a2e04..0e68fbdc 100644
--- a/src/nxt_kqueue_engine.c
+++ b/src/nxt_kqueue_engine.c
@@ -111,28 +111,26 @@ static ssize_t nxt_kqueue_conn_io_recvbuf(nxt_conn_t *c, nxt_buf_t *b);
static nxt_conn_io_t nxt_kqueue_conn_io = {
- nxt_kqueue_conn_io_connect,
- nxt_kqueue_conn_io_accept,
+ .connect = nxt_kqueue_conn_io_connect,
+ .accept = nxt_kqueue_conn_io_accept,
- nxt_kqueue_conn_io_read,
- nxt_kqueue_conn_io_recvbuf,
- nxt_conn_io_recv,
+ .read = nxt_kqueue_conn_io_read,
+ .recvbuf = nxt_kqueue_conn_io_recvbuf,
+ .recv = nxt_conn_io_recv,
- nxt_conn_io_write,
- nxt_event_conn_io_write_chunk,
+ .write = nxt_conn_io_write,
+ .sendbuf = nxt_conn_io_sendbuf,
#if (NXT_HAVE_FREEBSD_SENDFILE)
- nxt_freebsd_event_conn_io_sendfile,
+ .old_sendbuf = nxt_freebsd_event_conn_io_sendfile,
#elif (NXT_HAVE_MACOSX_SENDFILE)
- nxt_macosx_event_conn_io_sendfile,
+ .old_sendbuf = nxt_macosx_event_conn_io_sendfile,
#else
- nxt_event_conn_io_sendbuf,
+ .old_sendbuf = nxt_event_conn_io_sendbuf,
#endif
- nxt_event_conn_io_writev,
- nxt_event_conn_io_send,
-
- nxt_conn_io_shutdown,
+ .writev = nxt_event_conn_io_writev,
+ .send = nxt_event_conn_io_send,
};