public void HandleRealmList(RealmManager Session) { PacketWriter realmWriter = new PacketWriter(); realmWriter.WriteUInt8(1); realmWriter.WriteString("|cFF00FFFFAlpha Test Realm"); realmWriter.WriteString(Globals.SERVER_IP + ":" + Globals.PROXY_PORT); realmWriter.WriteUInt32((uint)Database.Players.Values.Count(x => x.IsOnline)); Session.Send(realmWriter, realmSocket); realmSocket.Close(); }
public void HandleRealmList(RealmManager Session) { PacketWriter realmWriter = new PacketWriter(); realmWriter.WriteUInt8(1); realmWriter.WriteBytes(System.Text.Encoding.ASCII.GetBytes("|cFF00FFFF Flame-WoW")); realmWriter.WriteUInt8(0); realmWriter.WriteBytes(System.Text.Encoding.ASCII.GetBytes("127.0.0.1:9090")); realmWriter.WriteUInt8(0); realmWriter.WriteUInt32(0); Session.Send(realmWriter, realmSocket); realmSocket.Close(); }
public void HandleRealmList(RealmManager Session) { PacketWriter realmWriter = new PacketWriter(); realmWriter.WriteUInt8(1); realmWriter.WriteBytes(System.Text.Encoding.ASCII.GetBytes("|cFF00FFFFAlpha Test Realm")); realmWriter.WriteUInt8(0); realmWriter.WriteBytes(System.Text.Encoding.ASCII.GetBytes("127.0.0.1:9090")); realmWriter.WriteUInt8(0); realmWriter.WriteUInt32(0); Session.Send(realmWriter, realmSocket); realmSocket.Close(); }
public void HandleProxyConnection(RealmManager Session) { Log.Message(); Log.Message(LogType.NORMAL, "Begin redirection to WorldServer."); PacketWriter proxyWriter = new PacketWriter(); proxyWriter.WriteString(Globals.SERVER_IP + ":" + Globals.WORLD_PORT); Session.Send(proxyWriter, proxySocket); proxySocket.Close(); Log.Message(LogType.NORMAL, "Successfully redirected to WorldServer"); Log.Message(); }
public void HandleProxyConnection(RealmManager Session) { Log.Message(); Log.Message(LogType.Normal, "Begin redirection to WorldServer."); PacketWriter proxyWriter = new PacketWriter(); proxyWriter.WriteBytes(System.Text.Encoding.ASCII.GetBytes("127.0.0.1:8100")); proxyWriter.WriteUInt8(0); Session.Send(proxyWriter, proxySocket); proxySocket.Close(); Log.Message(LogType.Normal, "Successfully redirected to WorldServer"); Log.Message(); }
public void HandleProxyConnection(RealmManager Session) { Log.Message(); Log.Message(LogType.NORMAL, "Begin redirection to WorldServer."); PacketWriter proxyWriter = new PacketWriter(); proxyWriter.WriteBytes(System.Text.Encoding.ASCII.GetBytes("127.0.0.1:8100")); proxyWriter.WriteUInt8(0); Session.Send(proxyWriter, proxySocket); proxySocket.Close(); Log.Message(LogType.NORMAL, "Successfully redirected to WorldServer"); Log.Message(); }