JavaOSC icon indicating copy to clipboard operation
JavaOSC copied to clipboard

Single socket for sending and receiving data

Open Burtan opened this issue 3 years ago • 1 comments

Hey,

some clients for OSC like x32 mixer from Behringer require to have one port for incoming and outgoing messages. That is currently not possible. I have merged the functions of the OscPortIn and OscPortOut. Would you take a pull request to include the OscPortInOut?

Thanks :)

Burtan avatar Apr 20 '22 13:04 Burtan

As I also could not make JavaOSC communicate bi-directionally with X32, I submitted the following PR which allows using the OSCPortOut "Transport" to be used in a new OSCPortIn: https://github.com/hoijui/JavaOSC/pull/66

var out = new OSCPortOut(new OSCSerializerAndParserBuilder(), new InetSocketAddress("x32-ip", 10023)); var in = new OSCPortIn(out.getTransport()); in.startListening(); out.send(new OSCMessage("/info"));

Kindly check if that also works for you or maybe your approach is even better?

nsowen avatar Jul 16 '22 09:07 nsowen

Closing as duplicate of #40

hoijui avatar Dec 09 '23 07:12 hoijui