🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: BCB6 Pro, Indy 9, IdFTPServer LIST problems

#1305
From: Remy Lebeau (TeamB)
Date: Tue, 20 Feb 2007 18:46
39 lines
2221 bytes
"Paul at NCF" <notplmacca@clara.co.uk> wrote in message
news:45d83fd9$1@newsgroups.borland.com...

> In the IdFTPServerAfterUserLogin handler I set the directories as
> follows (I presume this is ok, or should be doing this some other
way):

You are using DOS-style path delimiters, but TIdFTPServer defalts to
Unix-style delimiters instead.  That has a big influence on
TIdFTPServer's behavior.  You can't mix the two together.

If you are using Indy 10, then I suggest you attach a TIdFTPFileSystem
instead of trying to parse everything yourself manually.

> In the IdFTPServerListDirectory handler I print out the home,
current, and
> parameter APath.  The APath seems to be rubbish, or has something
appended.
> I'm emulating DOS and the component properties seem to indicate this
is in
> use.  Am I missing something or is this a known problem?

Since you did not show any of your code, there is no way to diagnose
your problem.

> The ListDirectory does this, what is the Copy function doing?

Comparing the last character in the string to the specified path
delimiter.

> where is the client IP connection data recorded, I can't see it in
the
> TIdFTPServerThread *ASender and TIdPeerThread *AThread parameters?

TIdPeerThread.Connection.Socket.Binding.PeerIP


Gambit
Technical Details
Message-ID: <45db41fd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45d83fd9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,4582a45f81472bd4
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: <45d83fd9$1@newsgroups.borland.com>
Subject: Re: BCB6 Pro, Indy 9, IdFTPServer LIST problems
Date: Tue, 20 Feb 2007 10:46:28 -0800
Lines: 41
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.34.171
Message-ID: <45db41fd$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1171997181 75.83.34.171 (20 Feb 2007 10:46:21 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail