UE-OSC
UE-OSC copied to clipboard
TCP version
As far as I know it's UDP only. Would it be possible to add TCP support?
Hi Gaborapp, Indeed it is currently UDP only, as OSC generally is. Adding support for TCP is largely doable, but I have no plan to code it myself.
Thanks. Would you accept a pull request about this? As I see it now oscpack can be replaced with liblo that supports TCP.
Yes, I would accept a PR! Some recommandations:
- there should be a setting to choose UDP vs TCP, defaulting to UDP.
- oscpack is used only to write/parse OSC messages, not to send/receive them. I used the UE4 network functions instead. So the TCP connections should be established using the UE4 functions too. I'm not inclined to replace oscpack.
- I guess some new events are needed (connected, disconnected, etc.). I would prefix them with "TCP" so that people do not expect them to work when using UDP.