Exemplo n.º 1
0
 public void NotifyClientDisconnected(ServerListener listener, TcpClient disconnectedClient)
 {
     Console.WriteLine("some one dis_connect");
     ClientDisconnected?.Invoke(this, disconnectedClient);
 }
Exemplo n.º 2
0
        public void Start(IPAddress ipAddress, int port)
        {
            ServerListener listener = new ServerListener(this, ipAddress, port);

            _listeners.Add(listener);
        }
Exemplo n.º 3
0
 public void NotifyClientConnected(ServerListener listener, TcpClient newClient)
 {
     Console.WriteLine("some one connect");
     ClientConnected?.Invoke(this, newClient);
 }