X-Plane Remote Access Plugin and Client Library
Public Member Functions | Static Public Attributes | Private Attributes | List of all members
xplra::ListenThread Class Reference

#include <ListenThread.h>

Inheritance diagram for xplra::ListenThread:

Public Member Functions

 ListenThread (Globals &globals)
 
GlobalsgetGlobals ()
 
void quit ()
 
virtual void run ()
 

Static Public Attributes

static const unsigned short defaultTCPPort = 0x5852
 

Private Attributes

Globalsglobals
 
hu::varadiistvan::scpl::io::Waiter waiter
 
hu::varadiistvan::scpl::io::WaitableEvent quitEvent
 
RequestQueue requestQueue
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ListenThread()

xplra::ListenThread::ListenThread ( Globals globals)
inline

Construct the thread.

Definition at line 112 of file ListenThread.h.

Member Function Documentation

◆ getGlobals()

Globals & xplra::ListenThread::getGlobals ( )
inline

Get the globals

Definition at line 120 of file ListenThread.h.

◆ quit()

void xplra::ListenThread::quit ( )
inline

Notify the thread to quit.

Definition at line 127 of file ListenThread.h.

◆ run()

void ListenThread::run ( )
virtual

Perform the thread's operation.

Definition at line 53 of file ListenThread.cc.

Member Data Documentation

◆ defaultTCPPort

const unsigned short xplra::ListenThread::defaultTCPPort = 0x5852
static

The default TCP port number ("XR")

Definition at line 62 of file ListenThread.h.

◆ globals

Globals& xplra::ListenThread::globals
private

The global objects.

Definition at line 68 of file ListenThread.h.

◆ quitEvent

hu::varadiistvan::scpl::io::WaitableEvent xplra::ListenThread::quitEvent
private

The event that can be fired to notify the thread that it should quit.

Definition at line 79 of file ListenThread.h.

◆ requestQueue

RequestQueue xplra::ListenThread::requestQueue
private

The queue for the requests.

Definition at line 84 of file ListenThread.h.

◆ waiter

hu::varadiistvan::scpl::io::Waiter xplra::ListenThread::waiter
private

The waiter used in the thread.

Definition at line 73 of file ListenThread.h.


The documentation for this class was generated from the following files: