🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #857

Re: TIdTelnet Disconnect Event Question

#857
From: Remy Lebeau (TeamB)
Date: Sat, 04 Aug 2007 02:26
14 lines
1474 bytes
"Omar Zelaya" <ozelaya2010@hotmail.com> wrote in message
news:46b39e2f@newsgroups.borland.com...

> how can i catch a server disconnect for a telnet client?

You can try using the OnStatus event, but there is nothing else beyond that
that gets triggered for that condition.  An exception is raised the next
time you try to access the socket after it has been disconnected.  You are
supposed to be writing your code to be exception-aware.  That is how Indy is
designed to be used.


Gambit
Technical Details
Message-ID: <46b3e41e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46b39cfa@newsgroups.borland.com> <46b39e2f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3c1442027b40ee90
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <46b39cfa@newsgroups.borland.com> <46b39e2f@newsgroups.borland.com>
Subject: Re: TIdTelnet Disconnect Event Question
Date: Fri, 3 Aug 2007 19:26:58 -0700
Lines: 16
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: 75.83.29.61
Message-ID: <46b3e41e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1186194462 75.83.29.61 (3 Aug 2007 19:27:42 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail