Inheritance: WoWClassic.Common.Network.Server
        public override void Listen(IPEndPoint endPoint)
        {
            base.Listen(endPoint);

            // Initialize WorldGatewayServer, so world servers can connect
            WorldGatewayServer = new WorldGatewayServer();
            WorldGatewayServer.Listen(new IPEndPoint(IPAddress.Any, 8090));

            // Announce the realm (triggering world servers to connect)
            Service.Participate();
            // TODO: Load realm from database / config
            Service.RealmState = new RealmState
            {
                ID = 1,
                Realm = new Realm()
                {
                    Type = RealmType.Normal,
                    Flags = RealmFlags.None,
                    Name = "Test Server",
                    Address = "127.0.0.1:8085",
                    Population = RealmPopulationPreset.Low,
                    Characters = 0,
                    Timezone = RealmTimezone.AnyLocale,
                },
                Status = RealmStatus.Online,
                GatewayPort = 8090
            };
        }
示例#2
0
        public override void Listen(IPEndPoint endPoint)
        {
            base.Listen(endPoint);

            // Initialize WorldGatewayServer, so world servers can connect
            WorldGatewayServer = new WorldGatewayServer();
            WorldGatewayServer.Listen(new IPEndPoint(IPAddress.Any, 8090));

            // Announce the realm (triggering world servers to connect)
            Service.Participate();
            // TODO: Load realm from database / config
            Service.RealmState = new RealmState
            {
                ID    = 1,
                Realm = new Realm()
                {
                    Type       = RealmType.Normal,
                    Flags      = RealmFlags.None,
                    Name       = "Test Server",
                    Address    = "127.0.0.1:8085",
                    Population = RealmPopulationPreset.Low,
                    Characters = 0,
                    Timezone   = RealmTimezone.AnyLocale,
                },
                Status      = RealmStatus.Online,
                GatewayPort = 8090
            };
        }
 public WorldGatewayConnection(WorldGatewayServer server, Socket socket)
     : base(server, socket)
 {
 }
 public WorldGatewayConnection(WorldGatewayServer server, Socket socket)
     : base(server, socket)
 {
 }