|
plptools
|
#include "config.h"#include "ncp_session.h"#include <algorithm>#include <cassert>#include <cstring>#include <iostream>#include <plpintl.h>#include <pthread.h>#include "ncp_log.h"#include "socketchannel.h"
Go to the source code of this file.
Functions | |
| void * | link_thread (void *arg) |
| void * | socket_connection_polling_thread (void *arg) |
| Responsible for driving the SocketChannel instances (incoming TCP connections) by means of SocketChannel::socketPoll. More... | |
| void | check_for_new_socket_connection (NCPSession *session) |
| void * | ncp_session_main_thread (void *arg) |
| void check_for_new_socket_connection | ( | NCPSession * | session | ) |
Definition at line 123 of file ncp_session.cc.
| void * link_thread | ( | void * | arg | ) |
The NCP::reset call here is currently required (even though it feels like it shouldn't be) as it's responsible for preparing the stack after a successful connection has ended (packet currently has responsibility for performing internal resets when auto-detecting baud rate).
Definition at line 51 of file ncp_session.cc.
| void * ncp_session_main_thread | ( | void * | arg | ) |
Definition at line 171 of file ncp_session.cc.
| void * socket_connection_polling_thread | ( | void * | arg | ) |
Responsible for driving the SocketChannel instances (incoming TCP connections) by means of SocketChannel::socketPoll.
This isn't likely to scale particularly well as it polls all connected sockets whenever a single one wakes up, but it seems to work (as we never have that many connected clients).
Definition at line 78 of file ncp_session.cc.