hmm, that's not really my issue, let me rephrase my question:

-IF- you get "not(LastError=0)" (or an exception with RaiseExcept=true)
after a Send- or Recv- call,
-THEN- is it sure that the connection is dead?
is it possible that some errors occur, but that subsequent packets will
transmit OK?

for now I'm assuming no, call CloseSocket, clean-up the thread and have a
mechanic that re-connects to a server asap.
Anyway, in productiont testing sometime later this month, I'll see how it
behaves...

On Mon, Jul 7, 2008 at 4:12 PM, Lukas Gebauer <[EMAIL PROTECTED]> wrote:

> > I'm still learning as i go how to use the blocking sockets. I notice
> > there's no Connected:boolean property. I understand there's no
> > Disconnected event, and that you know the connection is gone by a
> > CanRead or Recv* call failing, it is what I would expect of a blocking
> > socket. But if CanRead or Recv* fails, how can I check if the
> > connection really is lost,
>
> http://synapse.ararat.cz/doku.php/public:howto:activeconnection
>
>
>
> --
> Lukas Gebauer.
>
> E-mail: [EMAIL PROTECTED]
> http://synapse.ararat.cz/ - Ararat Synapse - TCP/IP Lib.
>
>
> -------------------------------------------------------------------------
> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
> Studies have shown that voting for your favorite open source project,
> along with a healthy diet, reduces your potential for chronic lameness
> and boredom. Vote Now at http://www.sourceforge.net/community/cca08
> _______________________________________________
> synalist-public mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/synalist-public
>
>
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to