Back to product page

FTPReply method


Called when wodFtpDLX provides information about executed command and returned reply.

Type

None

Syntax

  • Basic
object.FTPReply Owner, Command, ReplyCode, ReplyText
The FTPReply(object,Owner,Command,ReplyCode,ReplyText) syntax has these parts:
objectAn expression evaluating to an object of type IwodFtpNotify.
OwnerRequired. A wodFtpDLXCom object.
CommandRequired. A String value. Executed by wodFtpDLX.
ReplyCodeRequired. An Integer value. Reply code returned by the server.
ReplyTextRequired. A String value. Reply text returned by the server.

Remarks

This method is called only if you implemented IwodFtpNotify interface in your application, and wodFtpDLX.Notification property has received reference to instance of your implementation.

FTPReply notification method is just debug method that will be called only with FTP-alike transfer protocols (FTP and FTPS). Each time some command is executed by wodFtpDLX, this event will be fired. It will contain executed command, and reply code (and full text) as returned by the server.

If server's reply contains more than one line, they will all be included in ReplyText. If same code produces more than one reply (with different codes), FTPReply will fire more than once. Each time Command argument will contain command that caused this reply to be returned. Typical example is 'RETR' command which causes server to send '150 Data connection open' and '226 Transfer finished'.

Platforms

Windows