Socket Disconnection

Colin Brown cbrown at metservice.com
Sun Jun 23 22:19:02 EDT 2002


Hi Guyon

I assume here that you are talking TCP/IP.

If you are waiting on a receive [ data = connection.recv() ] then you will
have an empty data string returned when the client disconnects.

If you are sending you will get an error telling you the link was shut down.

Colin Brown
PyNZ


"Guyon Morée" <gumuz at looze.net> wrote in message
news:3d1304d0$0$224$4d4ebb8e at news.nl.uu.net...
> Hi!
>
> I have written a small and simpel server and I was wondering how do you
find
> out that a client has disconnected?
>
> thnax,
>
> Guyon
>
>





More information about the Python-list mailing list