🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: passive mode

#3414
From: Jonny
Date: Fri, 30 Sep 2005 12:43
41 lines
2423 bytes
Thank's a lot
Jonny

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> skrev i meddelandet 
news:433ac8d6$1@newsgroups.borland.com...
>
> "Jonny" <jonny.heyman@cekab.se> wrote in message
> news:433a4d21$1@newsgroups.borland.com...
>
>> I'am using indy9 ftp server.
>> I want to use passive mode.
>> Does anyone know what the eventhandler
>> for PASV would look like ?
>
> Indy 9 TIdFTPServer already supports PASV.  You do not need to implement 
> it
> yourself.  If you are trying to customize the IP/port that is sent to the
> client, instead of using the default values that TIdFTPServer 
> automatically
> calculates, then you can use the OnPASV event for that, ie:
>
>    procedure TForm1.IdFTPServer1Pasv(ASender: TIdFTPServerThread; var VIP 
> :
> String; var VPort : Word);
>    begin
>        VIP := 'Whatever IP address the client should connect to';
>        VPort := WhateverPortNumberTheClientShouldConnectTo;
>    end;
>
> About the only time you would ever want to customize the IP/port manually 
> is
> if your server machine is running being a router with port forwarding
> enabled, since the client will connect to the router directly instead of 
> the
> server and thus needs to know the router's IP/port instead of the 
> server's.
>
>
> Gambit
>
> 
Technical Details
Message-ID: <433d3247$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!news.usenetserver.com!atl-c07.usenetserver.com!news.usenetserver.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <433a4d21$1@newsgroups.borland.com> <433ac8d6$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f05d036eee2f8dd
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Jonny" <jonny.heyman@cekab.se>
From: "Jonny" <jonny.heyman@cekab.se>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <433a4d21$1@newsgroups.borland.com> <433ac8d6$1@newsgroups.borland.com>
Subject: Re: passive mode 
Date: Fri, 30 Sep 2005 14:43:43 +0200
Lines: 43
Organization: CEKAB
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 212.247.13.80
Message-ID: <433d3247$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1128084039 212.247.13.80 (30 Sep 2005 05:40:39 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!news.usenetserver.com!atl-c07.usenetserver.com!news.usenetserver.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail