Example #1
0
        static void Main(String[] args)
        {
            if (Net.Connect(new CNamePort("192.168.0.31", 20000)) == null)
            {
                throw new Exception("Can Not Connect");
            }

            while (true)
            {
                Net.Proc();

                if (Period.CheckAndNextFixed())
                {
                    foreach (var i in Clients)
                    {
                        Net.Send(i.Key, i.Value.SendNum++);
                    }
                }
                else
                {
                    Thread.Sleep(1);
                }
            }
        }