diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-08-11 19:20:13 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-08-11 19:20:13 +0300 |
commit | 6e31d6cd39be9d3f4ee680fc13c3fe42f5cd39e7 (patch) | |
tree | 2ef1d993674825791636486a0929ead424c8dd7a /src/nxt_unit.h | |
parent | 3cbc22a6dc45abdeade4deb364601230ddca02c1 (diff) | |
download | unit-6e31d6cd39be9d3f4ee680fc13c3fe42f5cd39e7.tar.gz unit-6e31d6cd39be9d3f4ee680fc13c3fe42f5cd39e7.tar.bz2 |
Changing router to application shared memory exchange protocol.
The application process needs to request the shared memory segment from the
router instead of the latter pushing the segment before sending a request to
the application. This is required to simplify the communication between the
router and the application and to prepare the router for using the application
shared port and then the queue.
Diffstat (limited to 'src/nxt_unit.h')
-rw-r--r-- | src/nxt_unit.h | 11 |
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. * |