Thread View: borland.public.cppbuilder.internet.socket
4 messages
4 total messages
Started by McKool
Fri, 25 Jun 2004 07:07
Killing-Disconnecting all Peers in a TIdTCPServer
Author: McKool
Date: Fri, 25 Jun 2004 07:07
Date: Fri, 25 Jun 2004 07:07
16 lines
1803 bytes
1803 bytes
Hello. I have some problems with Peer disconnection and ThreadTimeOuts. I want to make a general disconnection from a server application. In the moment a put the propertie "Active" from the server to false and hide the exception of ThreadTimeOut. It's work but the problem is after do that. Then i can not put the server again to "active = true" because its throughts the same ThreadTimeOut exception each time that i try to do it. Making a Sleep(1000) after the first exception (active = false), and before to try to active the server again, make the server work again, but I'm only wondering if is there a "clean" way to reset the server or something like that, or better... a standard way to make a general disconnection of Clients (without wait for the client confirmation of disconnect - I only want to cancel the active peers in order to shutdown the server and restart it with a new port number). Thanks in advance. KW
Re: Killing-Disconnecting all Peers in a TIdTCPServer
Author: Remy Lebeau (TeamB)
Date: Tue, 29 Jun 2004 22:35
Date: Tue, 29 Jun 2004 22:35
16 lines
1455 bytes
1455 bytes
"McKool" <kenethw@peak-system.com> wrote in message news:40dbcef7@newsgroups.borland.com... > Hello. I have some problems with Peer disconnection and > ThreadTimeOuts. I want to make a general disconnection > from a server application. In the moment a put the propertie > "Active" from the server to false and hide the exception of > ThreadTimeOut. Do your threads use the Synchronize() method at all? The Active property has a known timeout problem with threads calling Synchronize() while the Active poperty is being assigned. Gambit
Re: Killing-Disconnecting all Peers in a TIdTCPServer
Author: McKool
Date: Wed, 30 Jun 2004 11:37
Date: Wed, 30 Jun 2004 11:37
23 lines
1770 bytes
1770 bytes
Yes, i use Synchronize but this problem comes even without enter in a synchronize function. "Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> schrieb im Newsbeitrag news:40e1f01e$1@newsgroups.borland.com... > > "McKool" <kenethw@peak-system.com> wrote in message > news:40dbcef7@newsgroups.borland.com... > > > Hello. I have some problems with Peer disconnection and > > ThreadTimeOuts. I want to make a general disconnection > > from a server application. In the moment a put the propertie > > "Active" from the server to false and hide the exception of > > ThreadTimeOut. > > Do your threads use the Synchronize() method at all? The Active property > has a known timeout problem with threads calling Synchronize() while the > Active poperty is being assigned. > > > Gambit > >
Re: Killing-Disconnecting all Peers in a TIdTCPServer
Author: Remy Lebeau (TeamB)
Date: Wed, 30 Jun 2004 17:16
Date: Wed, 30 Jun 2004 17:16
11 lines
1206 bytes
1206 bytes
"McKool" <kenethw@peak-system.com> wrote in message news:40e2a5bf@newsgroups.borland.com... > Yes, i use Synchronize but this problem comes > even without enter in a synchronize function. Please show your actual code. 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