private void _server_ClientConnected(object sender, System.Net.Sockets.TcpClient e)
        {
            var tmpClient = SimpleTcpAdapter.Convert(e);

            Clients.Add(tmpClient.GetEndPoint().ToString(), tmpClient);
            if (OnNewConnect != null)
            {
                OnNewConnect.Invoke(tmpClient);
            }
        }
Пример #2
0
 public void Handle(NewConnect message)
 {
     OnNewConnect?.Invoke(message);
 }