MulticastSocket example

Please post support and help requests here.
Posts: 7
Joined: 21 Dec 2009, 18:55

MulticastSocket example

Postby Kreek » 21 Dec 2009, 18:58


Could someone out there post me an example of how to use the MulticastSocket class? I don't really understand how I can send anything to a multicast group with this class.. How is a multicast group defined in poco? How do you know the address to join the group when using the method joinGroup(IPAddress)? Is there some useful example of this class on the internet? Thanks.. 8-)

Posts: 1375
Joined: 11 Jul 2006, 16:27
Location: United_States

Re: MulticastSocket example

Postby alex » 22 Dec 2009, 01:21

Posts: 1
Joined: 22 Dec 2009, 21:44

Re: MulticastSocket example

Postby Niel001 » 22 Dec 2009, 21:51

We're having a little trouble here as well. We know how to send packages to a multicast-address and we're able to succesfully join a multicast-group, but we're stuck at receiving the messages. We use the member function receiveFrom(void* buffer, int length, SocketAddress& address, int flags) to see whether data has been sent to a multicast-address on which we have joined. Our program keeps waiting here as it seems that no data at all has been sent.

How can we receive data that has been sent to a specific multicast-address?

Thank you very much for your help.

Return to “Support”

Who is online

Users browsing this forum: No registered users and 5 guests