diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2017-12-26 20:46:01 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2017-12-26 20:46:06 +0300 |
commit | c767ca5d3c09d8f64dbfa05e86fde1fd5d702083 (patch) | |
tree | db66e2dec5c5a3fdf1a5178782079a40fca4cc74 /accel-pppd/cli | |
parent | b8bf4001c5ae882153acc3a3632281c51662866c (diff) | |
download | accel-ppp-xebd-c767ca5d3c09d8f64dbfa05e86fde1fd5d702083.tar.gz accel-ppp-xebd-c767ca5d3c09d8f64dbfa05e86fde1fd5d702083.zip |
reworked context priorities
Introduced 4 priorities:
0 - management (cli)
1 - starting sessions (default priority)
2 - active sessions
3 - finishing sessions
Diffstat (limited to 'accel-pppd/cli')
-rw-r--r-- | accel-pppd/cli/tcp.c | 2 | ||||
-rw-r--r-- | accel-pppd/cli/telnet.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/cli/tcp.c b/accel-pppd/cli/tcp.c index 051ff84..270d8cb 100644 --- a/accel-pppd/cli/tcp.c +++ b/accel-pppd/cli/tcp.c @@ -362,7 +362,7 @@ static void start_server(const char *host, int port) addr.sin_addr.s_addr = inet_addr(host); triton_context_register(&serv_ctx, NULL); - triton_context_set_priority(&serv_ctx, 1); + triton_context_set_priority(&serv_ctx, 0); triton_md_register_handler(&serv_ctx, &serv_hnd); triton_md_enable_handler(&serv_hnd, MD_MODE_READ); triton_context_wakeup(&serv_ctx); diff --git a/accel-pppd/cli/telnet.c b/accel-pppd/cli/telnet.c index 9ef2ea8..33a82e4 100644 --- a/accel-pppd/cli/telnet.c +++ b/accel-pppd/cli/telnet.c @@ -699,7 +699,7 @@ static void start_server(const char *host, int port) addr.sin_addr.s_addr = inet_addr(host); triton_context_register(&serv_ctx, NULL); - triton_context_set_priority(&serv_ctx, 1); + triton_context_set_priority(&serv_ctx, 0); triton_md_register_handler(&serv_ctx, &serv_hnd); triton_md_enable_handler(&serv_hnd, MD_MODE_READ); triton_context_wakeup(&serv_ctx); |