[newbie] trying socket as a replacement for nc

Chris Angelico rosuav at gmail.com
Fri Dec 13 11:19:21 EST 2013


On Sat, Dec 14, 2013 at 3:10 AM, Grant Edwards <invalid at invalid.invalid> wrote:
> 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).

Nearest to a standard would be the way heaps of internet protocols are
line-based - SMTP, POP, IMAP, FTP, and to a lesser extent HTTP as
well. The end-of-line sequence \r\n delimits messages.

ChrisA



More information about the Python-list mailing list