|
Nebula
|
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< StdTcpServer > | tcpServer |
| IpAddress | ipAddress |
| Ptr< Socket > | socket |
| const Core::Rtti * | connectionClassRtti |
|
private |
|
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.
|
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.
| void Net::StdTcpServer::ListenerThread::SetAddress | ( | const IpAddress & | a | ) |
set ip address
| void Net::StdTcpServer::ListenerThread::SetClientConnectionClass | ( | const Core::Rtti & | type | ) |
set client connection class
| void Net::StdTcpServer::ListenerThread::SetTcpServer | ( | StdTcpServer * | tcpServer | ) |
set pointer to parent tcp server
|
private |
|
private |
|
private |