[cse491] CSE 491 HW4 - socket recv amount
C. Titus Brown
ctb at msu.edu
Mon Oct 5 19:55:58 PDT 2009
On Mon, Oct 05, 2009 at 08:50:20PM -0400, Rick Silva wrote:
> Should our handle_connection method work for any amount of data received
> per call? For example, should it work for both "data = sock.recv(4096)"
> and "data = sock.recv(1)"?
Yep. Conveniently, the handle_connection function I sent out in webserve.py
(lab5?) does exactly this ;)
-titus
--
C. Titus Brown, ctb at msu.edu
More information about the cse491-fall-2009
mailing list