Thread View: borland.public.cppbuilder.internet.socket
2 messages
2 total messages
Started by Willie
Thu, 13 Oct 2005 09:45
IdTCPClient->Connected()
Author: Willie
Date: Thu, 13 Oct 2005 09:45
Date: Thu, 13 Oct 2005 09:45
15 lines
1016 bytes
1016 bytes
Hello:
My IdTCPServer is shutdown. But...
IdTCPClient->Connect(1000);
if(IdTCPClient->Connected()) // always true
{
ShowMessage("Connected");
}
How can I solve this problem?
Indy 9.0.14
Willie.
Re: IdTCPClient->Connected()
Author: Remy Lebeau (TeamB)
Date: Thu, 13 Oct 2005 17:32
Date: Thu, 13 Oct 2005 17:32
17 lines
1426 bytes
1426 bytes
"Willie" <Willie.nospam@nospam.pchome.com.tw> wrote in message news:434e29b0$1@newsgroups.borland.com... > IdTCPClient->Connect(1000); > if(IdTCPClient->Connected()) // always true Do you ever read from or write to the socket? Indy uses blocking sockets, which cannot detect disconnects unless you actually access the socket periodically. > Indy 9.0.14 That is a very old build of Indy 9. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads