diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-02-22 15:09:59 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-02-22 15:09:59 +0300 |
commit | 029942f4eb7196c2cff0d0e26bc6ff274138f7d8 (patch) | |
tree | f4686c4d7b9cd574fe94c6f4918479a580fecf75 /src/nxt_port_socket.h | |
parent | 059a8642898a6bd4b47d13a1c1d599cd44af7e1c (diff) | |
download | unit-029942f4eb7196c2cff0d0e26bc6ff274138f7d8.tar.gz unit-029942f4eb7196c2cff0d0e26bc6ff274138f7d8.tar.bz2 |
I/O operations refactoring.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_port_socket.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nxt_port_socket.h b/src/nxt_port_socket.h index e3202a28..4740368d 100644 --- a/src/nxt_port_socket.h +++ b/src/nxt_port_socket.h @@ -33,8 +33,6 @@ typedef struct { /* Must be the first field. */ nxt_fd_event_t socket; - nxt_task_t task; - nxt_queue_t messages; /* of nxt_port_send_msg_t */ /* Maximum size of message part. */ @@ -61,8 +59,8 @@ struct nxt_port_recv_msg_s { }; -NXT_EXPORT nxt_port_t *nxt_port_alloc(void); -NXT_EXPORT nxt_port_t *nxt_port_create(size_t bufsize); +NXT_EXPORT nxt_port_t *nxt_port_alloc(nxt_task_t *task); +NXT_EXPORT nxt_port_t *nxt_port_create(nxt_task_t *task, size_t bufsize); NXT_EXPORT void nxt_port_destroy(nxt_port_t *port); NXT_EXPORT void nxt_port_write_enable(nxt_task_t *task, nxt_port_t *port); NXT_EXPORT void nxt_port_write_close(nxt_port_t *port); |