Port RPC interface introduced.

Usage:
1. Register handlers in incoming port with nxt_port_rpc_register_handler().
2. Use return value as a stream identifier for next nxt_port_socket_write().
This commit is contained in:
Max Romanov
2017-08-02 13:14:31 +03:00
parent 3812ffd336
commit f2e9afdf42
9 changed files with 369 additions and 0 deletions

View File

@@ -200,6 +200,8 @@ static nxt_port_handler_t nxt_master_process_port_handlers[] = {
nxt_port_master_data_handler,
NULL,
nxt_port_ready_handler,
nxt_port_rpc_handler,
nxt_port_rpc_handler,
};