[newbie] trying socket as a replacement for nc

Grant Edwards invalid at invalid.invalid
Fri Dec 13 17:10:46 CET 2013


On 2013-12-12, Chris Angelico <rosuav at gmail.com> wrote:

> Now, if you want reliability AND datagrams, it's a lot easier to add
> boundaries to a TCP stream (sentinel or length prefixes) than to add
> reliability to UDP...

It's unfortunate that there's no standardized reliable
connection-oriented datagram protocol.  The linux kernel implements 
one for Unix domain sockets (SOCK_SEQPACKET), and its really, really
useful.

Adding boundaries to a TCP stream achieves the same goal (and isn't
that hard to do), but since there's no standard for it, people keep
having to reinvent it (often badly and always incompaibly).

-- 
Grant Edwards               grant.b.edwards        Yow! Hello...  IRON
                                  at               CURTAIN?  Send over a
                              gmail.com            SAUSAGE PIZZA!  World War
                                                   III?  No thanks!



More information about the Python-list mailing list