Newbie question: SOLVED (how to keep a socket listening), but still some questions
Grant Edwards
grante at visi.com
Fri Jun 24 22:29:33 EDT 2005
On 2005-06-25, Jp Calderone <exarkun at divmod.com> wrote:
>>[I've never figured out why one would do a shutdown RDWR rather
>>than close the connection, but I haven't put a lot of thought
>>into it.]
>
> shutdown actually tears down the TCP connection; close
> releases the file descriptor.
>
> If there is only one file descriptor referring to the TCP
> connection, these are more or less the same. If there is more
> than one file descriptor, though, the difference should be
> apparent.
Ah yes. I hadn't thought of that. I think the only time I had
ever used shutdown was to shutdown just the transmit half.
--
Grant Edwards grante Yow! An INK-LING? Sure --
at TAKE one!! Did you BUY any
visi.com COMMUNIST UNIFORMS??
More information about the Python-list
mailing list