Article View: borland.public.cppbuilder.internet.socket
Article #5625Killing-Disconnecting all Peers in a TIdTCPServer
From: 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
Technical Details
Message-ID:
<40dbcef7@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11508e,668f82faa227d477,start X-Google-Attributes: gid11508e,public From: "McKool" <kenethw@peak-system.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Killing-Disconnecting all Peers in a TIdTCPServer Date: Fri, 25 Jun 2004 09:07:01 +0200 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 213.157.13.214 Message-ID: <40dbcef7@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1088147191 213.157.13.214 (25 Jun 2004 00:06:31 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail