Re: controling conections

Giganews Newsgroups
Subject: Re: controling conections
Posted by:  Remy Lebeau (TeamB) (gambit47.no.spam@no.spam.yahoo.com)
Date: Sun, 4 Jan 2004

"Feijó" <fei…@x.suply.com> wrote in message
news:B34A4CC1D38CE240fei…@x.suply.com...

> 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.

Gambit

Replies

In response to

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