Example #1
0
 static void _server_UserDisconnected(object sender, ConnectionArgs args)
 {
     Console.WriteLine("Rozłączenie : " + args.Connection.Ip.ToString());
 }
        private void EventHandlerClientDisconnected(object sender, ConnectionArgs args)
        {
            lock (lockVar)
            {
                _connections.Remove(args.Connection);
            }

            if (this.UserDisconnected != null)
            {
                this.UserDisconnected(this, args);
            }
        }
Example #3
0
 private void RaiseInputReceived(ConnectionArgs connectionArgs, string action)
 {
     if (this.UserCommandReceived != null)
     {
         this.UserCommandReceived(this, new CommandRecivedArgs(connectionArgs.Connection, action));
     }
 }