public AuthentificationClient(SilverSock.SilverSocket socket)
     : base(socket)
 {
     this.Handler = new AuthentificationHandler(this);
     this.EncrypKey = Utilities.Basic.RandomString(32);
     Send("HC" + EncrypKey);
 }
Esempio n. 2
0
        public WorldClient(SilverSock.SilverSocket socket)
            : base(socket)
        {
            //Set Handler and Player !!
            Handler = new Dispatcher(this);
            Action = new WorldPlayer(this);
            LastActionTime = Environment.TickCount + Program.MaxIdleTime;

            //Send HelloGame
            Send("HG");
        }
 public override void ServerAcceptClient(SilverSock.SilverSocket socket)
 {
     try
     {
         Logger.LogInfo("New input connection !" + socket.IP);
         lock(Clients)
             Clients.Add(new AuthentificationClient(socket));
     }
     catch (Exception e)
     {
         Logger.LogError("Can't accept connection : " + e.ToString());
     }
 }
Esempio n. 4
0
 public RealmLink(SilverSock.SilverSocket socket)
     : base(socket)
 {
     System.Threading.Thread.Sleep(500);
     SendMessage(new Packet.HelloKeyMessage());
 }
Esempio n. 5
0
 public override void ServerAcceptClient(SilverSock.SilverSocket socket)
 {
     Utilities.ConsoleStyle.Infos("New RConClient !");
     this.Clients.Add(new RConClient(socket));
 }
Esempio n. 6
0
 public override void ServerAcceptClient(SilverSock.SilverSocket socket)
 {
     Utilities.ConsoleStyle.Realm("New realm connection !");
     NotVefifiedLink.Add(new RealmLink(socket));
 }
Esempio n. 7
0
 public RConClient(SilverSock.SilverSocket socket)
     : base(socket)
 {
 }
Esempio n. 8
0
 public override void ServerAcceptClient(SilverSock.SilverSocket socket)
 {
     Utilities.ConsoleStyle.Infos("New input connection from realm !");
     this.Add(new WorldClient(socket));
 }