Dangerous SNMP
|
Public Member Functions | |
void | registerInput (int handle, std::shared_ptr< ByteStream > buffer) |
void | registerOutput (int handle, std::shared_ptr< ByteStream > buffer) |
void | unregisterInput (int handle) |
void | unregisterOutput (int handle) |
void | main () |
void | start () |
This starts the the IoSystem as a thread. | |
void | stop () |
This stops the IoSystem thread, if it's running. | |
void | wakeup () |
Protected Attributes | |
bool | isStopped |
This is whether or not the thread should attempt to stop. More... | |
std::thread | thisThread |
This is the thread for this instance. | |
std::mutex | lock |
std::map< int, std::shared_ptr < ByteStream > > | inMap |
std::map< int, std::shared_ptr < ByteStream > > | outMap |
int | localSockets [2] |
|
protected |
This is whether or not the thread should attempt to stop.
If this is true, then the main loop should exit as soon as is convenient.