diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-04-11 17:33:18 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-04-11 17:33:18 +0300 |
commit | c7e575d5c61c2b301207c751ae73186d7568857e (patch) | |
tree | 378c0a86a6dd256c239d7992134c0faeb2a4304a /src/nxt_conn.h | |
parent | 0be4f1f6938bf34c8ff5dacaf31716572404a10d (diff) | |
download | unit-c7e575d5c61c2b301207c751ae73186d7568857e.tar.gz unit-c7e575d5c61c2b301207c751ae73186d7568857e.tar.bz2 |
Introducing connection state io_read_handler.
Diffstat (limited to 'src/nxt_conn.h')
-rw-r--r-- | src/nxt_conn.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nxt_conn.h b/src/nxt_conn.h index 110b1634..92686703 100644 --- a/src/nxt_conn.h +++ b/src/nxt_conn.h @@ -8,6 +8,7 @@ #define _NXT_CONN_H_INCLUDED_ +typedef ssize_t (*nxt_conn_io_read_t)(nxt_conn_t *c); typedef nxt_msec_t (*nxt_conn_timer_value_t)(nxt_conn_t *c, uintptr_t data); @@ -16,6 +17,8 @@ typedef struct { nxt_work_handler_t close_handler; nxt_work_handler_t error_handler; + nxt_conn_io_read_t io_read_handler; + nxt_work_handler_t timer_handler; nxt_conn_timer_value_t timer_value; uintptr_t timer_data; @@ -160,7 +163,6 @@ struct nxt_conn_s { nxt_sockaddr_t *local; const char *action; - uint8_t peek; uint8_t blocked; /* 1 bit */ uint8_t delayed; /* 1 bit */ |