Closed cansik closed 4 years ago
Hmm...
Could you not instead use underlyingChannel.setOption(StandardSocketOptions.SO_BROADCAST, true);
, before supplying underlyingChannel
to the OSCDatagramChannel
ctor, instead?
We should have a unit test for that though!
@hoijui I've created a PR.
For some operating systems it is necessary to start the JVM with a broadcast allowance flag. Basically we just have to set the broadcast flag to true in the Socket (here is the code line):
This allows us to send broadcast messages on addresses like
192.168.1.255
.