Quantcast
Channel: Recent Topics - INDI Forum
Viewing all articles
Browse latest Browse all 15748

TCP / UDP connections - by: jaimea

$
0
0
Hello,

I've noticed some kind of UDP support has been added recently; I don't manage to get the standard "tty_read" and "tty_write" to work with it.

Looking at connectiontcp.cpp code, it is a bit confusing to see it calling a "connect" for an UDP connection - and no "bind".
It's common for UDP clients to:
- open the socket
- bind with address NULL
- perform "sendto"s
(other alternatives maybe sendto/recvfrom...)

I intended to add some code to improve this, but not sure of the approach. Also I don't know if there's any other code using the UDP as it is now? (I don't see how...)

I'll be glad to code it if a convenient approach is found.

Thanks again,

jaime

Viewing all articles
Browse latest Browse all 15748

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>