aberant / osc-ruby

Open Sound Control Library for Ruby
MIT License
94 stars 16 forks source link

Specify broadcast interface by passing in local IP #14

Closed danieldickison closed 5 years ago

danieldickison commented 5 years ago

This lets you send multicast packets from a network interface other than the primary interface by passing in an IP address for the local interface.

aberant commented 5 years ago

Do you have time to update the examples to show how to send multicast packets?

danieldickison commented 5 years ago

I don't have time right now but it would probably make sense to add similar functionality to the Server and EMServer classes to listen on a particular ethernet interface. With that, the broadcast example could be updated to target a particular interface, though actually demonstrating it would require a local environment with multiple interfaces and passing in the local IP addresses.

aberant commented 5 years ago

I'll take some time tomorrow to merge this and deploy a new gem. I'll keep it as a "dark" feature until I get some time to update the docs.

Thanks for this PR.

aberant commented 5 years ago

osc-ruby 1.1.3 has been published to rubygems. Thanks again!

danieldickison commented 5 years ago

Great! I'll try to work on the server side of this and add an example when I have some spare time.