UE-OSC icon indicating copy to clipboard operation
UE-OSC copied to clipboard

TCP version

Open gaborpapp opened this issue 2 years ago • 3 comments

As far as I know it's UDP only. Would it be possible to add TCP support?

gaborpapp avatar Aug 12 '21 13:08 gaborpapp

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.

monsieurgustav avatar Aug 16 '21 08:08 monsieurgustav

Thanks. Would you accept a pull request about this? As I see it now oscpack can be replaced with liblo that supports TCP.

gaborpapp avatar Aug 16 '21 08:08 gaborpapp

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.

monsieurgustav avatar Aug 16 '21 08:08 monsieurgustav