summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_unit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_unit.h')
-rw-r--r--src/nxt_unit.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/nxt_unit.h b/src/nxt_unit.h
index 8fa64f4e..79157f5f 100644
--- a/src/nxt_unit.h
+++ b/src/nxt_unit.h
@@ -20,6 +20,7 @@ enum {
NXT_UNIT_OK = 0,
NXT_UNIT_ERROR = 1,
NXT_UNIT_AGAIN = 2,
+ NXT_UNIT_CANCELLED = 3,
};
enum {
@@ -189,16 +190,6 @@ struct nxt_unit_read_info_s {
nxt_unit_ctx_t *nxt_unit_init(nxt_unit_init_t *);
/*
- * Process received message, invoke configured callbacks.
- *
- * If application implements it's own event loop, each datagram received
- * from port socket should be initially processed by unit. This function
- * may invoke other application-defined callback for message processing.
- */
-int nxt_unit_process_msg(nxt_unit_ctx_t *,
- void *buf, size_t buf_size, void *oob, size_t oob_size);
-
-/*
* Main function useful in case when application does not have it's own
* event loop. nxt_unit_run() starts infinite message wait and process loop.
*