tedr56 / oscpack

Automatically exported from code.google.com/p/oscpack
Other
0 stars 0 forks source link

Adds multicast support #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi Ross, 

As promised here is the diff file that should add multicast support to the 
current revision.

Mattijs

Original issue reported on code.google.com by mattijsk...@gmail.com on 12 Nov 2014 at 6:18

Attachments:

GoogleCodeExporter commented 8 years ago
Oops, I see I filed it as a Defect. Should be a new feature of course. 

And here is a more elaborate description:

Adds multicast support for Windows and Mac/Posix.

With multicast, clients choose to subscribe to packets by subscribing to a 
multicast group. The benefit over sending by broadcast, i.e. setting the 
packets to be received by everyone on the network listening to a specific port, 
is that it enables routers to use network bandwidth more economically, mostly 
useful when streaming lots of data. 
http://en.wikipedia.org/wiki/Multicast_address

In this implementation, listening to an IP address in the multicast range 
(224.0.0.0 through 239.255.255.255) automatically enables multicast on the 
receiving socket. For multicast sending, no extra work has to be done, you can 
just specify the multicast address as the destination address.

The patch also adds an optional -bindaddress argument to OscReceiveTest, which 
enables the user to either bind to a specific local address or to a multicast 
group address as described above.

Original comment by mattijsk...@gmail.com on 12 Nov 2014 at 6:31