Article View: borland.public.cppbuilder.internet.socket
Article #5321Re: How can I know that server is shutdowned?
From: Mark Jacobs
Date: Thu, 23 Sep 2004 16:03
Date: Thu, 23 Sep 2004 16:03
18 lines
1719 bytes
1719 bytes
"Vladimir Stefanovic" <spam@not.needed> wrote in message
news:4152dced@newsgroups.borland.com...
| I'm using TClientSocket/TServerSocket.
| OnDisconnect is not trigered (AFAIK) when someone, for
| example, close the server app.
It is definitely triggered in my applications :-
//---------------------------------------------------------------------------
void __fastcall TForm1::ClientSocket1Disconnect(TObject
*Sender,TCustomWinSocket *Socket)
{
ShowMessage("Station "+AnsiString(statno)+" Disconnected.");
}
//---------------------------------------------------------------------------
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk
markj atty critical dotty co dotty uk
Technical Details
Message-ID:
<4152f3b7@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4152dced@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3dc3c1cc97f7872b X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Mark Jacobs" <markj atty critical dotty co dotty uk> From: "Mark Jacobs" <markj atty critical dotty co dotty uk> Newsgroups: borland.public.cppbuilder.internet.socket References: <4152dced@newsgroups.borland.com> Subject: Re: How can I know that server is shutdowned? Date: Thu, 23 Sep 2004 17:03:08 +0100 Lines: 20 Organization: DK Computing X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 81.144.157.8 Message-ID: <4152f3b7@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1095955383 81.144.157.8 (23 Sep 2004 09:03:03 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail