🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdTelnet Disconnect Event Question

#856
From: Remy Lebeau (TeamB)
Date: Sat, 04 Aug 2007 02:25
21 lines
1462 bytes
"Omar Zelaya" <ozelaya2010@hotmail.com> wrote in message
news:46b39cfa@newsgroups.borland.com...

> When the server disconnects the the session, the Disconnect
> event is not called.

It is not supposed to be.  Indy clients are not event-driven.  OnDisconnect
is only triggered when the Disconnect() method is called.

> When the form that contains the TIdTelnet components is
> closed, the disconnect event is called

Because Disconnect() is being called.

> Are this two behaviours normal?

Yes.


Gambit
Technical Details
Message-ID: <46b3e3bd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!feeder.news-service.com!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>

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>
Subject: Re: TIdTelnet Disconnect Event Question
Date: Fri, 3 Aug 2007 19:25:22 -0700
Lines: 23
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: <46b3e3bd$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1186194365 75.83.29.61 (3 Aug 2007 19:26:05 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!feeder.news-service.com!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