summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port_socket.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-02-22 15:09:59 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-02-22 15:09:59 +0300
commit029942f4eb7196c2cff0d0e26bc6ff274138f7d8 (patch)
treef4686c4d7b9cd574fe94c6f4918479a580fecf75 /src/nxt_port_socket.h
parent059a8642898a6bd4b47d13a1c1d599cd44af7e1c (diff)
downloadunit-029942f4eb7196c2cff0d0e26bc6ff274138f7d8.tar.gz
unit-029942f4eb7196c2cff0d0e26bc6ff274138f7d8.tar.bz2
I/O operations refactoring.
Diffstat (limited to '')
-rw-r--r--src/nxt_port_socket.h6
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);