Beispiel #1
0
        static void Main(string[] args)
        {
            var tcpListener = new AsynchronousSocketListener();
            var tcpListenerThread = new Thread(tcpListener.StartListening);
            tcpListenerThread.Start();

            var udpWrapper = new UdpWrapperTimer();
            var timer = new Timer(udpWrapper.SendEcho);
            timer.Change(0, 5000);

            Console.ReadLine();
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            var tcpListener       = new AsynchronousSocketListener();
            var tcpListenerThread = new Thread(tcpListener.StartListening);

            tcpListenerThread.Start();

            var udpWrapper = new UdpWrapperTimer();
            var timer      = new Timer(udpWrapper.SendEcho);

            timer.Change(0, 5000);

            Console.ReadLine();
        }