On 25 November 2010 10:49, Aidan Diffey <[email protected]> wrote:

> Okay..  Now I am stumped.
>
> How do I create a custom FTPLet that implements the onDownloadStart
> method in PASSIVE mode?
>
>
Reading both your posts, I think you're confused about what
onDownloadStart() does.

As far as I understand, when a RETR command is handled:
- The server iterates through every configured ftplet, calling
onDownloadStart() for each one
- Then it performs the data transfer
- Then it calls onDownloadEnd() for each ftplet

This happens regardless of whether the transfer is active or passive.

I wouldn't expect you to normally mess around with opening/closing/handling
data connections in onDownloadStart()

At a higher level, what are you hoping to achieve?


-- 
"There is no way to peace; peace is the way"

Reply via email to