Esempio n. 1
0
        public static void Main(string[] args)
        {
            // Load the configuration file
            string configPath = "BalloonServer.conf";
            if(args.Length > 1)
            {
                configPath = args[1];
            }
            // If this path doesn't exist, the config file will be created with default values
            Configuration.Load(configPath);

            // Start the server
            Server server = new Server(Configuration.LocalIPAddress, Configuration.LocalPort);
            server.Run();
        }
Esempio n. 2
0
 public static void Main(string[] args)
 {
     Server server = new Server(4000);
     server.Run();
 }