3rd Eye Scene C#
3rd Eye Scene C# documentation
|
A TCP/IP based implementation of IConnectionMonitor. More...
Public Member Functions | |
ConnectionMonitor (TcpServer server) | |
Create a connection monitor for the given server. | |
bool | Start (ConnectionMonitorMode mode) |
Start listening for connections in the given mode . | |
void | Stop () |
Stop listening for connections. | |
void | Join () |
Join the background thread if running ConnectionMonitorMode.Asynchronous. | |
void | MonitorConnections () |
Update the connection list. | |
void | CommitConnections (NewConnectionCallback callback=null) |
Commit new and expired connections to the list and update the IServer. | |
Properties | |
ConnectionMonitorMode | Mode [get, set] |
The connection mode. |
A TCP/IP based implementation of IConnectionMonitor.
To be used with TcpServer.
The IConnectionMonitor interface generally contains better documentation for the class members.
Tes::Server::ConnectionMonitor::ConnectionMonitor | ( | TcpServer | server | ) | [inline] |
Create a connection monitor for the given server.
server | The server object. |
void Tes::Server::ConnectionMonitor::CommitConnections | ( | NewConnectionCallback | callback = null | ) | [inline] |
Commit new and expired connections to the list and update the IServer.
callback | The callback to invoke for each new connection. May be null. |
Must be called from the main thread, regardless of mode, to ensure the server reflects the current connection list.
Implements Tes::Server::IConnectionMonitor.
void Tes::Server::ConnectionMonitor::Join | ( | ) | [inline] |
Join the background thread if running ConnectionMonitorMode.Asynchronous.
Does nothing in other mods.
Implements Tes::Server::IConnectionMonitor.
void Tes::Server::ConnectionMonitor::MonitorConnections | ( | ) | [inline] |
Update the connection list.
Must be called from the main thread when running ConnectionMonitorMode.Synchronous.
Implements Tes::Server::IConnectionMonitor.
bool Tes::Server::ConnectionMonitor::Start | ( | ConnectionMonitorMode | mode | ) | [inline] |
Start listening for connections in the given mode .
mode |
Implements Tes::Server::IConnectionMonitor.