A
Arsen V.
How to get Icmp messages to work with multiple threads.
Currently I tried during ReceiveFrom and use Peek to get the fromEndPoint.
If this is equals to the EndPoint that I used in SendTo, I do an actual
ReceiveFrom (not Peek).
Otherwise, I continue to loop around and do
ReceiveFrom(...,SocketFlags.Peek,ref fromEndPoint).
However, this does not scale well. With 20 threads it does not work at all.
Any suggestions?
Currently I tried during ReceiveFrom and use Peek to get the fromEndPoint.
If this is equals to the EndPoint that I used in SendTo, I do an actual
ReceiveFrom (not Peek).
Otherwise, I continue to loop around and do
ReceiveFrom(...,SocketFlags.Peek,ref fromEndPoint).
However, this does not scale well. With 20 threads it does not work at all.
Any suggestions?