summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_master_process.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-08-02 21:11:20 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-08-02 21:11:20 +0300
commita94178a05e7a96c5c6ccf144aad90695d3773b4b (patch)
tree1fbf388e1d4600c781c759b300d7fbcac103f1c5 /src/nxt_master_process.h
parentb150f07e801802124ca6f3b29b4b9f97aa68d52b (diff)
downloadunit-a94178a05e7a96c5c6ccf144aad90695d3773b4b.tar.gz
unit-a94178a05e7a96c5c6ccf144aad90695d3773b4b.tar.bz2
Listening socket creation and binding operations are passed
to the master process.
Diffstat (limited to 'src/nxt_master_process.h')
-rw-r--r--src/nxt_master_process.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nxt_master_process.h b/src/nxt_master_process.h
index bcdf645d..3a7e4988 100644
--- a/src/nxt_master_process.h
+++ b/src/nxt_master_process.h
@@ -8,6 +8,17 @@
#define _NXT_MASTER_PROCESS_H_INCLUDED_
+typedef enum {
+ NXT_SOCKET_ERROR_SYSTEM = 0,
+ NXT_SOCKET_ERROR_NOINET6,
+ NXT_SOCKET_ERROR_PORT,
+ NXT_SOCKET_ERROR_INUSE,
+ NXT_SOCKET_ERROR_NOADDR,
+ NXT_SOCKET_ERROR_ACCESS,
+ NXT_SOCKET_ERROR_PATH,
+} nxt_socket_error_t;
+
+
nxt_int_t nxt_master_process_start(nxt_thread_t *thr, nxt_task_t *task,
nxt_runtime_t *runtime);
void nxt_master_stop_worker_processes(nxt_task_t *task, nxt_runtime_t *runtime);