BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Attention Gambit >> Disconnects

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (ADO)
View previous topic :: View next topic  
Author Message
Caleb
Guest





PostPosted: Mon Mar 12, 2007 2:42 am    Post subject: Attention Gambit >> Disconnects Reply with quote



How can I tell if the client program has become disconnected
from the server? And then reconnect?

I have tried checking

Myconnection->Connected

But it reads 'true' when client is diconnected from Internet.

I have tried placing the adotable statements in a try catch
and reconnecting in the catch{}

Also, using BCB6, the client program automatically connects
when launched -- the password is not entered.


Thanks

Caleb
Back to top
George Tokas
Guest





PostPosted: Wed Mar 21, 2007 2:53 am    Post subject: Re: Attention Gambit >> Disconnects Reply with quote



Send some data that will be ignored by the client...
The server socket will then notifies about the disconnection and the
connected array will be updated..

George Tokas.
Ο "Caleb" <sdafasd (AT) kjl (DOT) com> έγραψε στο μήνυμα
news:45f469b4$1 (AT) newsgroups (DOT) borland.com...
Quote:


How can I tell if the client program has become disconnected
from the server? And then reconnect?

I have tried checking

Myconnection->Connected

But it reads 'true' when client is diconnected from Internet.

I have tried placing the adotable statements in a try catch
and reconnecting in the catch{}

Also, using BCB6, the client program automatically connects
when launched -- the password is not entered.


Thanks

Caleb
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.