public void SendStringNow_TestWithSring()
        {
            UDPSender us = new UDPSender("127.0.0.1", 7777);

            string t = "I am testing the udp sender SendStringNow method";

            us.SendStringNow(t);

            Assert.AreEqual(us.GetTotalNbDataINOUT(), t.Length);
        }
예제 #2
0
        private void SendCommands()
        {
            while (true)
            {
                foreach (KeyValuePair <string, string> command in commands)
                {
                    udpSender.SendStringNow(command.Value);
                }

                Thread.Sleep(SLEEP_TIME);
            }
        }