4 ms·
Glad to read anything I can regarding networking applications in practice. Transmitting between embedded devices and PCs, I've been stuck with either Tcp or Ud
by caseymarquis 10y ago
Glad to read anything I can regarding networking applications in practice.
Transmitting between embedded devices and PCs, I've been stuck with either Tcp or Udp; no other protocols are typically implemented on the embedded side. I've found sending reliable ordered messages requires implementing something on top of either protocol. Udp is great for concrete messages, but doesn't give you ordered reliability, Tcp has the opposite problem where the streaming nature means you need to wrap messages and occasionally confirm proper receipt of a message to figure out when old messages can be tossed. The issue with Tcp being that when the connection breaks down, you don't in practice know exactly where it broke and if the other side received several completed messages and acted on them, or if you need to resend.
I'd initially assumed Tcp would cover all my needs. Didn't take much initial research to figure out that wasn't true.