Hi doug, darin and al.,
I'd like to implement new FTP commands for my ftp site manager:
1. file deletion 2. mkdir 3. rmdir (of an empty dir)
Any clue you can give me ? I just don't know where I have to start.
</Daniel> _______________________________________________ Mozilla-netlib mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-netlib
hey daniel,
the ftp state machine logic is all contained in nsFtpConnectionThread.{h,cpp}. don't let the name of these files throw you... there is no FTP thread... anymore :-)
you'll want to find a way to expose these commands. typically, code using FTP interacts with a nsFTPChannel object. so, you might want to add methods to nsIFTPChannel. the flow of operations probably looks something like this:
client creates FTP channel
client configures FTP channel to: delete, mkdir, or rmdir.
client calls AsyncOpen
client waits for OnStartRequest/OnStopRequest to determine success/failure of operation.
this is of course slightly weird since you aren't really opening anything.
darin _______________________________________________ Mozilla-netlib mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-netlib
