Back to product page

FTPReply event


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

Syntax

  • Basic
Private Sub object_FTPReply(Command, ReplyCode, ReplyText)
The FTPReply(object,Command,ReplyCode,ReplyText) syntax has these parts:
objectA wodFtpDLX object.
CommandA String value. Command executed by wodFtpDLX.
ReplyCodeAn Integer value. Holds reply code returned by the server.
ReplyTextA String value. Full reply as returned by the server.

Remarks

FTPReply event is just debug event that will be fired 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