[Python-Dev] The socket HOWTO

Nick Coghlan ncoghlan at gmail.com
Wed Jun 8 17:06:55 CEST 2011


On Tue, Jun 7, 2011 at 1:54 PM, Glyph Lefkowitz <glyph at twistedmatrix.com> wrote:
> how is UDP different from TCP?
>
> The phrase "UDP" never appears in the HOWTO.  DGRAM sockets get a brief
> mention as "anything else" in the sentence: "... you’ll get better behavior
> and performance from a STREAM socket than anything else ...".  (To be fair,
> I do endorse teaching that "the difference between TCP and UDP is that you
> should not use UDP" to anyone not sufficiently advanced to read the relevant
> reference documentation themselves.)

And if UDP starts sounding tempting due to excessively high latency,
these days it's worth looking up the specs for the interplanetary
internet instead.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list