🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TIdFTP usage???

#4039
From: Remy Lebeau (TeamB)
Date: Wed, 13 Apr 2005 09:17
37 lines
2102 bytes
"qyte" <gyte@vivodinet.gr> wrote in message
news:425cd0b5@newsgroups.borland.com...

> Is it possible to use the same client for a
> download and at the same time use it to
> browse the list contents of an ftp server?

No.  The FTP protocol does not support that, thus nethier does TIdFTP, or
any other FTP component for that matter.  The FTP protocol can only do one
thing at a time.  If you want to perform multiple operations at a time, then
you need to make multiple connections to the server.

> Should i better have two clients instead?

Yes.

> Another thing i was wondering an i found that
> using a web browser. I see that a web browser
> (for example mozilla firefox) does not stay all the time
> connected with the server. In fact whenever i try to
> acces the contents of a folder it always says
> connecting in it's status bar.
> Is this approach better? i mean connect->list->disconnect.
> or connect->Get->disconnect.

No.  Stay connected as long as you actually need.

> I use that for the moment because if i connect and
> stay inactive for a while the server disconnects me
> and somehow the client cannot tell if the connection
> has been reset.

Call the Noop() method periodically.


Gambit
Technical Details
Message-ID: <425ce33a$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <425cd0b5@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,758d735f53c89a3c
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <425cd0b5@newsgroups.borland.com>
Subject: Re: TIdFTP usage???
Date: Wed, 13 Apr 2005 02:17:39 -0700
Lines: 39
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: 68.69.17.41
Message-ID: <425ce33a$2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1113383738 68.69.17.41 (13 Apr 2005 02:15:38 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail