Пример #1
0
        public static void Main(string[] args)
        {
            //CreateHostBuilder(args).Build().Run();
            var s = new UdpSocket();

            s.Server("127.0.0.1", 4445);
            while (true)
            {
                Console.ReadKey();
            }
        }
Пример #2
0
    static void Main(string[] args)
    {
        UdpSocket s = new UdpSocket();

        s.Server("127.0.0.1", 27000);

        UdpSocket c = new UdpSocket();

        c.Client("127.0.0.1", 27000);
        c.Send("TEST!");

        Console.ReadKey();
    }