コード例 #1
0
ファイル: Server.cs プロジェクト: xaznblade/hwkinect
        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();
        }
コード例 #2
0
ファイル: Server.cs プロジェクト: PyrO70/hwkinect
 public static void Main(string[] args)
 {
     Server server = new Server(4000);
     server.Run();
 }