Exemplo n.º 1
0
 public void Send(byte[] Bytes)
 {
     try
     {
         Socket.Send(Bytes);
     }
     catch { SessionHandler.CloseClientSocket(Args); }
 }
Exemplo n.º 2
0
        public void Invoke(Transmission.Session Session, Types.InMessage Message)
        {
            var Ticket    = Message.GetString();
            var Character = CharacterHandler.Authenticate(Ticket);

            if (Character != null)
            {
                Solution.AppendPaint(ConsoleColor.DarkCyan);
                Solution.AppendLine("Character: Authenticated({0})", Character.Username);

                MessageHandler.HandleComposer(Session, new AuthenticationOKMessageComposer());

                Session.Character = Character;
            }
            else
            {
                Solution.AppendPaint();
                Solution.AppendLine("Authenticate: Unknown: {0}", Ticket);

                SessionHandler.CloseClientSocket(Session.Args);
            }
        }