Back to product page

FtpReplyEvent event


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

Syntax

  • C#
  • VB.NET
delegate void FtpReplyDelegate(object Sender,FtpReplyArgs Args);
The FtpReplyEvent(Args.Command,Args.ReplyCode,Args.ReplyText) syntax has these parts:
Args.CommandString. Command executed by wodFtpDLX.NET.
Args.ReplyCodeInteger. Holds reply code returned by the server.
Args.ReplyTextString. Full reply as returned by the server.

Delegate Sub FtpReplyDelegate(ByVal Sender As Object, ByVal Args As FtpReplyArgs)
The FtpReplyEvent(Args.Command,Args.ReplyCode,Args.ReplyText) syntax has these parts:
Args.CommandString. Command executed by wodFtpDLX.NET.
Args.ReplyCodeInteger. Holds reply code returned by the server.
Args.ReplyTextString. 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.NET, 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 Args.ReplyText. If same code produces more than one reply (with different codes), FTPReply will fire more than once. Each time Args.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