示例#1
0
        public static void BeforeClass()
        {
            TestUtil.CopyLangTxt();//BJD.Lang.txt

            //設定ファイルの退避と上書き
            _op = new TmpOption("SampleServerTest","SampleServerTest.ini");
            var kernel = new Kernel();
            var option = kernel.ListOption.Get("Sample");
            var conf = new Conf(option);

            //サーバ起動
            _v4Sv = new Server(kernel, conf, new OneBind(new Ip(IpKind.V4Localhost), ProtocolKind.Tcp));
            _v4Sv.Start();

            _v6Sv = new Server(kernel, conf, new OneBind(new Ip(IpKind.V6Localhost), ProtocolKind.Tcp));
            _v6Sv.Start();
        }
示例#2
0
文件: Program.cs 项目: dansam100/FYDP
 static void Main(string[] args)
 {
     Console.WriteLine("Started Server...");
     Server s = new Server();
     s.Start();
 }