UdpClient Send Receive

2019-08-07 12:55发布

问题:

First I want to say that I read: UdpClient, Receive() right after Send() does not work?

My question is: is this the normal standard way to handle UDP communications. Set up one UdpClient for send and another for receive?

回答1:

Yes.

This is the standard way to do UDP sockets in .NET



回答2:

you can actually do this on a Server using Sockets as well checkout this link to see if this will help you in anyway.how to configure the server socket