3 ms·
UARTs have 7 vs 8 bit, parity negotiation, speed negotiation and all other manner of arcane config that has to be exactly perfect for anything to flow. Sockets
by tezza 5y ago
UARTs have 7 vs 8 bit, parity negotiation, speed negotiation and all other manner of arcane config that has to be exactly perfect for anything to flow.
Sockets don’t look too bad compared to that
- GeorgeTirebiter 5y agoI'm not sure you quite understood my point? I'm not claiming that uarts are the end-all, be-all. What I am saying is that, even with the features of 'sockets' e.g. being able to be a 'server', ultimately, when data transmission happens, it's as if you have a virtual uart. I don't care about the specific uart-level detail here.
- foxfluff 5y agowrite() and read() work on a connected socket fd just as they work on a uart. So I don't really understand what the problem here is? Of course you have datagram protocols and recvmsg() & co, which are useful precisely when you're dealing with something that does not looks like a uart.