public void NotifyClientDisconnected(ServerListener listener, TcpClient disconnectedClient) { Console.WriteLine("some one dis_connect"); ClientDisconnected?.Invoke(this, disconnectedClient); }
public void Start(IPAddress ipAddress, int port) { ServerListener listener = new ServerListener(this, ipAddress, port); _listeners.Add(listener); }
public void NotifyClientConnected(ServerListener listener, TcpClient newClient) { Console.WriteLine("some one connect"); ClientConnected?.Invoke(this, newClient); }