コード例 #1
0
        void testPub()
        {
            GalileoSDK sdk = new GalileoSDK();

            while (true)
            {
                var servers = sdk.GetServersOnline();
                if (servers.Count == 0)
                {
                    Console.WriteLine("No server found");
                }
                foreach (var server in servers)
                {
                    Console.WriteLine("Connect to " + server.ID);
                }
                var res = sdk.Connect("", true, 10000, null, null);
                Console.WriteLine(res);
                sdk.PublishTest();
                Thread.Sleep(1000);
            }
        }