public AuthentificationClient(SilverSock.SilverSocket socket) : base(socket) { this.Handler = new AuthentificationHandler(this); this.EncrypKey = Utilities.Basic.RandomString(32); Send("HC" + EncrypKey); }
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()); } }
public RealmLink(SilverSock.SilverSocket socket) : base(socket) { System.Threading.Thread.Sleep(500); SendMessage(new Packet.HelloKeyMessage()); }
public override void ServerAcceptClient(SilverSock.SilverSocket socket) { Utilities.ConsoleStyle.Infos("New RConClient !"); this.Clients.Add(new RConClient(socket)); }
public override void ServerAcceptClient(SilverSock.SilverSocket socket) { Utilities.ConsoleStyle.Realm("New realm connection !"); NotVefifiedLink.Add(new RealmLink(socket)); }
public RConClient(SilverSock.SilverSocket socket) : base(socket) { }
public override void ServerAcceptClient(SilverSock.SilverSocket socket) { Utilities.ConsoleStyle.Infos("New input connection from realm !"); this.Add(new WorldClient(socket)); }