Exemplo n.º 1
0
        static void Main(string[] args)
        {
            string IP   = null;
            int    PORT = 5000;

            getIPandPort(ref IP, ref PORT);
            //Console.Write("IP : {0}, Port : {1}", IP, PORT);
            UDPBroadCast uDPBroadCast = new UDPBroadCast(IP, PORT);

            while (true)
            {
                Console.Write("Message? : ");
                uDPBroadCast.Send(Console.ReadLine());
            }
        }