المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : UdpClient.Send() hangs



C# Programming
08-13-2011, 03:21 PM
Hi guys!

In one of my applications I use UDP multicast to broadcast event notifications to an arbitrary number of clients.
This works nicely, except for one system where the application is running on Windows Server 2008R2.
On this machine, the call to Send() for a newly created UdpClient hangs.
I'm trying to send around 2K of data, well below the maximum size of 16K for UDP packages.
The process of sending is quite straightforward (at least from my point of view):
- Create a UdpClient
- Join the corresponding multicast group
- Serialize the event data
- Send this data (in row to several destination ports, if this makes any difference)
- Leave the multicast group

I couldn't find anything about Send() hanging so far, but perhaps someone here has an explanation?
Regards,
mav

--
Black holes are the places where God divided by 0...