Make it convenient to get return values from OSC server.
https://github.com/njh/jackminimix returns values to OSC server calls.
Thus, I have to write
>>> import pythonosc.udp_client as uc
>>> client=uc.SimpleUDPClient("localhost", 14629)
>>> client.send(uc.OscMessageBuilder("/mixer/get_channel_count").build())
>>> res=uc.OscMessage(client._sock.recv(4096))
>>> res.address
'/mixer/channel_count'
>>> res.params
[1]
Getting return values should be more straightforward than using a hidden instance variable such as _sock.
I agree, I am working on building a pure client for receiving OSC information (like play/pause information in a DAW), but of course this is done by connecting to the client, hence needing to just passively receive. Would be nice being able to do this in such a fashion as the server implementation
The provided servers work with a dispatcher. You have to map callback functions to addresses you want to receive at. See the example.
Tip: You can also map the method of an object!