Nebula
Loading...
Searching...
No Matches
Net::StdTcpServer::ListenerThread Class Reference

Detailed Description

a private listener thread class

Inherits Thread.

Public Member Functions

void SetTcpServer (StdTcpServer *tcpServer)
 set pointer to parent tcp server
 
void SetAddress (const IpAddress &a)
 set ip address
 
void SetClientConnectionClass (const Core::Rtti &type)
 set client connection class
 

Private Member Functions

 __DeclareClass (ListenerThread)
 
virtual void DoWork ()
 implements the actual listener method
 
virtual void EmitWakeupSignal ()
 send a wakeup signal
 

Private Attributes

Ptr< StdTcpServertcpServer
 
IpAddress ipAddress
 
Ptr< Socketsocket
 
const Core::RtticonnectionClassRtti
 

Member Function Documentation

◆ __DeclareClass()

Net::StdTcpServer::ListenerThread::__DeclareClass ( ListenerThread )
private

◆ DoWork()

void Net::StdTcpServer::ListenerThread::DoWork ( )
privatevirtual

implements the actual listener method

This is the actual listening method which runs in a separat thread.

It creates a server socket and listens for incoming connections. When a client connects, a new TcpClientConnection will be created and added to the array of active connections.

◆ EmitWakeupSignal()

void Net::StdTcpServer::ListenerThread::EmitWakeupSignal ( )
privatevirtual

send a wakeup signal

Emit a wakeup signal to the listener thread, this will just connect to the socket which wakes up the Socket::Listen() method.

◆ SetAddress()

void Net::StdTcpServer::ListenerThread::SetAddress ( const IpAddress & a)

set ip address

◆ SetClientConnectionClass()

void Net::StdTcpServer::ListenerThread::SetClientConnectionClass ( const Core::Rtti & type)

set client connection class

◆ SetTcpServer()

void Net::StdTcpServer::ListenerThread::SetTcpServer ( StdTcpServer * tcpServer)

set pointer to parent tcp server

Member Data Documentation

◆ connectionClassRtti

const Core::Rtti* Net::StdTcpServer::ListenerThread::connectionClassRtti
private

◆ ipAddress

IpAddress Net::StdTcpServer::ListenerThread::ipAddress
private

◆ socket

Ptr<Socket> Net::StdTcpServer::ListenerThread::socket
private

◆ tcpServer

Ptr<StdTcpServer> Net::StdTcpServer::ListenerThread::tcpServer
private

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