Thread View: borland.public.cppbuilder.internet.socket
1 messages
1 total messages
Started by eric chan
Thu, 21 Jun 2007 09:27
Socket->Connections[i] client thread
Author: eric chan
Date: Thu, 21 Jun 2007 09:27
Date: Thu, 21 Jun 2007 09:27
23 lines
1415 bytes
1415 bytes
Hi all,
We've a socket program that using Socket->Connections[i] to get the client
connections.
For Example,
for(int i = 0; i < skt->Socket->ActiveConnections; i++)
{
thread =
(TSktThread*)(skt->Socket->GetClientThread((TServerClientWinSocket*)(sktUser->Socket->Connections[i])));
.
.
}
We discovered that there may be times that there is client disconnection
occur
while it's inside the for-loop. It caused the Socket->Connections[i] return
false/invalid
client connection.
Anyone could help to giving me some hint on how to solve this?
Regards,
Eric Chan
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