[Python-Dev] Iterable sockets?

Greg Ewing greg@cosc.canterbury.ac.nz
Fri, 14 Mar 2003 16:26:19 +1300 (NZDT)

Skip Montanaro <skip@pobox.com>:

> Would it be sufficient for the close() method on the object returned by
> sock.makefile() to call shutdown(2) on the underlying socket?

I don't think that would be very useful - shutdown() is
normally used to shut the socket down in one direction only.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+