Gate.Gate.MainLoop C# (CSharp) Method

MainLoop() public method

public MainLoop ( ) : void
return void
        public void MainLoop()
        {
            frontendNetwork.Poll();
            backendNetwork.Poll();
        }

Usage Example

示例#1
0
        static void Main(string[] args)
        {
            if (args.Length == 0)
            {
                Console.WriteLine("wrong args usage:[frontPort backPort]");
                return;
            }

            int frontPort;

            if (!int.TryParse(args[0], out frontPort))
            {
                Console.WriteLine("start failed, frontPort parsed failed");
                return;
            }

            int backPort;

            if (!int.TryParse(args[1], out backPort))
            {
                Console.WriteLine("start failed, backPort parsed failed");
                return;
            }

            var gate = new Gate(frontPort, backPort);

            while (true)
            {
                gate.MainLoop();
                Thread.Sleep(100);
            }
        }
All Usage Examples Of Gate.Gate::MainLoop