Hello,
I am maintaining other's code and its using the class UdpClient
. The code declares one instance of UdpClient
and receives data continuously using the UdpClient.Receive()
.
When data is received, it is processed in another thread and the UdpClient
calls Receive()
again. At the same time when the data is processed the same client is sending a response back.
Question: Is this a bug? I think so because UdpClient
is not thread safe so you can not call two methods at the same time. Anyways code is working fine but ...