socket programming

Brad Tilley bradtilley at usa.net
Wed Sep 15 13:21:45 EDT 2004


Rene Pijlman wrote:
> You need to define a protocol for the communication between client and
> server, and implement the server in such a way that it sends what it's
> expected to send, when it has received what it expected to receive. In
> your current code, the server is expecting an infinite amount of data,
> while the client is sending only a few bytes.

You could define a special char that indicated the end of the transmission.



More information about the Python-list mailing list