socket programming
Rene Pijlman
reply.in.the.newsgroup at my.address.is.invalid
Wed Sep 15 12:57:35 EDT 2004
Ajay:
>the problem is when my client finished sending and waits to receive, on the
>server side, it still stays in the while loop waiting to receive more data.
>
>how do i stop that?
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.
--
René Pijlman
More information about the Python-list
mailing list