X-Plane Remote Access Plugin and Client Library
|
#include <ListenThread.h>
Public Member Functions | |
ListenThread (Globals &globals) | |
Globals & | getGlobals () |
void | quit () |
virtual void | run () |
Static Public Attributes | |
static const unsigned short | defaultTCPPort = 0x5852 |
Private Attributes | |
Globals & | globals |
hu::varadiistvan::scpl::io::Waiter | waiter |
hu::varadiistvan::scpl::io::WaitableEvent | quitEvent |
RequestQueue | requestQueue |
The thread that listens to incoming connections and starts the client serving threads.
This is a detached thread, to allow it to quit automatically.
Definition at line 56 of file ListenThread.h.
|
inline |
Construct the thread.
Definition at line 112 of file ListenThread.h.
|
inline |
Get the globals
Definition at line 120 of file ListenThread.h.
|
inline |
Notify the thread to quit.
Definition at line 127 of file ListenThread.h.
|
virtual |
Perform the thread's operation.
Definition at line 53 of file ListenThread.cc.
|
static |
The default TCP port number ("XR")
Definition at line 62 of file ListenThread.h.
|
private |
The global objects.
Definition at line 68 of file ListenThread.h.
|
private |
The event that can be fired to notify the thread that it should quit.
Definition at line 79 of file ListenThread.h.
|
private |
The queue for the requests.
Definition at line 84 of file ListenThread.h.
|
private |
The waiter used in the thread.
Definition at line 73 of file ListenThread.h.