Re: controling conections

Giganews Newsgroups
Subject: Re: controling conections
Posted by:  Remy Lebeau (TeamB) (
Date: Sun, 4 Jan 2004

"Feijó" <fei…> wrote in message

> But If some client just lost conection with the internet, will
> my server see?

If the disconnect was done gracefully, meaning the client actually
initialized a controlled disconnect from the server, then the server will
see the disconnect fairly quickly.  However, if the client disconnects
abnormally, the server may not see it for awhile.  That is just the nature
of how sockets work in general.

> If the server internet crash (it happens here :(  ), how can I
> know that and then destroy every objects each connection
> (thread) has?

You don't need to do that yourself.  The server will handle that for you as
soon as it detects that the connects are no longer valid.



In response to

controling conections posted by Feijó on Sun, 4 Jan 2004