471,354 Members | 1,284 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

Help with multicast receive

I've build an application that sends UDP packets to a multicast address
224.1.2.3 but in my other application I can't receive that packets
using the code below. It blocks on receive. Any suggestions? (I can see
the packets arriving at 224.1.2.3:554 on the client machine since I'm
running the server and the client on the same machine)

UdpClient uc=new UdpClient(8899);
uc.JoinMulticastGroup(IPAddress.Parse("224.1.2.3") );
IPEndPoint ep=new IPEndPoint(IPAddress.Any,0);
byte[] packet=uc.Receive(ref ep); -----> Blocks!!!
uc.Close();

Jan 18 '06 #1
0 1237

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by 0k | last post: by
6 posts views Thread by PHLICS_Admin | last post: by
1 post views Thread by PHLICS_Admin | last post: by
reply views Thread by PHLICS_Admin | last post: by
1 post views Thread by Eric St-Onge | last post: by
7 posts views Thread by Nuno Magalhaes | last post: by
7 posts views Thread by pietro.cerutti | last post: by
reply views Thread by zig158 | last post: by
1 post views Thread by Jayme.Pechan | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.