[twsocket] Timeout and TWSocket

Wilfried Mestdagh wilfried_sonal@compuserve.com
Sat, 10 Jun 2000 10:56:33 +0200


Rafal,

> > This is 2..3 minutes, is system setting (registery).
> Poor that. Isn't possible to override this ?

Yes you can find the registery key's in older messages here (few mondths
ago), but better is to handle itself in your program.

> Do you mean checking TWSocket state in OnTimer event ? That would be good.
> I'll check this.

That's it. You Enable a Timer when you connect. In OnSessionConnected you
disable the Timer. In OnTimer just Close (dont have to check the state). In
OnSessionClosed you disable Timer also and post eventually a message to
reconnect.

rgds, Wilfried