Inheritance: ITcpServer
Esempio n. 1
0
 public CommandEndpoint(IMessageDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
     _server = new TcpServer();
     _server.IncomingMessage += Handle_serverIncomingMessage;
 }
Esempio n. 2
0
 public ServerWrapper(string terminateString)
 {
     RecievedMessage = null;
     if (terminateString == null)
         _server = new TcpServer();
     else
         _server = new TcpServer(terminateString);
     _server.ClientConnected += Handle_serverClientConnected;
     _server.IncomingMessage += Handle_serverIncomingMessage;
 }