Example #1
0
 public SunChannel(string name, SunServer server, int worldPort)
 {
     this.name      = name;
     this.server    = server;
     this.worldPort = worldPort;
     InitializeChannel();
 }
Example #2
0
        private static void InitializeServersAndChannels()
        {
            Console.WriteLine(Resources.Server_InitializeServerAndChannels_Load);

            var    server1Name  = ConfigurationManager.AppSettings["Server1Name"];
            int    server1Port  = Int32.Parse(ConfigurationManager.AppSettings["Server1Port"]);
            string channel1Name = ConfigurationManager.AppSettings["Channel1Name"];
            int    channel1Port = Int32.Parse(ConfigurationManager.AppSettings["Channel1Port"]);

            var server1 = new SunServer(server1Name, server1Port);

            server1.AddChannel(channel1Name, channel1Port);
            servers.Add(1, server1);
        }