🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Indy ftp server with c++ HELP PLEASE

#5516
From: Brian
Date: Tue, 17 Aug 2004 22:07
42 lines
2125 bytes
I tried the code in the link. It gets an empty list when i login. Why is that? this is my code for OnAfterLogin

void __fastcall TfrmMain::IdFTPServer1AfterUserLogin(
      TIdFTPServerThread *ASender)
{
        // ASender is an autocreated thread for us
        // Instance of struct
        TFtpClient*    AClient;
        AClient = new TFtpClient;

        ASender->HomeDir = '/';
        ASender->CurrentDir = '/';

        // Our struct for various settings
        AClient->Thread = ASender;
        AClient->IP = ASender->Connection->Socket->Binding->PeerIP.c_str() ;
        AClient->RootPath = "c:\\" ; // Need function to return  
        // Pass this struct to our ASender thread
        ASender->Data = AClient;

}

"Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote:
>
>"Brian" <brianb@p3mc.net> wrote in message
>news:4122792e$1@newsgroups.borland.com...
>
>> The examples given and the ones on the web are
>> all in Delphi which doesnt really help all that much.
>
>Sure it does, because the concepts are the same in C++.
>
>> If yuo don't have that , perhaps esomeone can give
>> me an example of OnDirectoryList in c++ ?
>
>http://tinyurl.com/4mp32
>
>
>Gambit
>
>
Technical Details
Message-ID: <412281ad@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4122792e$1@newsgroups.borland.com> <41227d66$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,da1fa7af1cf4859f
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Brian" <brianb@p3mc.net>
Sender: "Brian" <brianb@p3mc.net>
Reply-To: "Brian" <brianb@p3mc.net>
Subject: Re: Indy ftp server with c++ HELP PLEASE
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 202.139.43.133     
X-Forwarded-For: 144.55.44.145, 144.55.32.32, 144.55.9.4
References: <4122792e$1@newsgroups.borland.com> <41227d66$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <412281ad@newsgroups.borland.com>
Date: 17 Aug 2004 15:07:41 -0700
X-Trace: newsgroups.borland.com 1092780461 207.105.83.66 (17 Aug 2004 15:07:41 -0700)
Lines: 43
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail