Ejemplo n.º 1
0
 public TCPBase(int id, TcpClient client, MessageReceivedEvent messageReceiver, DiconnectedEvent disconnectHandler)
 {
     this.id                  = id;
     this.client              = client;
     this.MessagesHandler     = messageReceiver;
     this.DiconnectionHandler = disconnectHandler;
 }
Ejemplo n.º 2
0
 public ConnectionHandler(TcpClient client, MessageReceivedEvent messageHandler, DiconnectedEvent disconnectHandler)
     : base(Interlocked.Increment(ref listenersCounter), client, messageHandler, disconnectHandler)
 {
     Debug.Log("Listener " + id + " is connected to a client");
 }