Example #1
0
        private Client() : base()
        {
start:
            try
            {
                Start(DataGenerator.Generate(12), "ACCESSKEY", _portUDP, _portTCP, IPTool.GetLocalIPAddress());
            }
            catch
            {
                Thread.Sleep(500);
                goto start;
            }
        }
Example #2
0
 private Server()
 {
     base.Start(_portUdp, 1000 * 20, 1000, IPTool.GetLocalIPAddress(), _portTcp);
     _timer = new Timer(SendSignal, "LIGHTHOUSE", 0, 1000);
 }