Public Member Functions | |
virtual bool | breakLoop () |
virtual void | loop () |
~ListenThread () | |
Static Public Member Functions | |
static void | createInstance (RTT::SocketMarshaller *marshaller, unsigned short port=3142) |
static void | destroyInstance () |
Private Member Functions | |
bool | listen () |
ListenThread (RTT::SocketMarshaller *marshaller, unsigned short port) | |
void | removeInstance () |
Private Attributes | |
bool | _accepting |
RTT::SocketMarshaller * | _marshaller |
unsigned short | _port |
int | _sock |
bool | inBreak |
Static Private Attributes | |
static ListenThread * | _instance = 0 |
ListenThread is a thread which waits for new incoming connections from clients.
Definition at line 52 of file TcpReporting.cpp.
OCL::ListenThread::ListenThread | ( | RTT::SocketMarshaller * | marshaller, |
unsigned short | port | ||
) | [inline, private] |
Definition at line 137 of file TcpReporting.cpp.
OCL::ListenThread::~ListenThread | ( | ) | [inline] |
Definition at line 158 of file TcpReporting.cpp.
virtual bool OCL::ListenThread::breakLoop | ( | ) | [inline, virtual] |
Reimplemented from RTT::Activity.
Definition at line 176 of file TcpReporting.cpp.
static void OCL::ListenThread::createInstance | ( | RTT::SocketMarshaller * | marshaller, |
unsigned short | port = 3142 |
||
) | [inline, static] |
Definition at line 195 of file TcpReporting.cpp.
static void OCL::ListenThread::destroyInstance | ( | ) | [inline, static] |
Definition at line 204 of file TcpReporting.cpp.
bool OCL::ListenThread::listen | ( | ) | [inline, private] |
Definition at line 63 of file TcpReporting.cpp.
virtual void OCL::ListenThread::loop | ( | ) | [inline, virtual] |
Reimplemented from RTT::Activity.
Definition at line 163 of file TcpReporting.cpp.
void OCL::ListenThread::removeInstance | ( | ) | [inline, private] |
Definition at line 149 of file TcpReporting.cpp.
bool OCL::ListenThread::_accepting [private] |
Definition at line 60 of file TcpReporting.cpp.
ListenThread * OCL::ListenThread::_instance = 0 [static, private] |
Definition at line 57 of file TcpReporting.cpp.
Definition at line 58 of file TcpReporting.cpp.
unsigned short OCL::ListenThread::_port [private] |
Definition at line 59 of file TcpReporting.cpp.
int OCL::ListenThread::_sock [private] |
Definition at line 61 of file TcpReporting.cpp.
bool OCL::ListenThread::inBreak [private] |
Definition at line 56 of file TcpReporting.cpp.