Back to product page

PreTranslateReplyEvent event


Fires before wodFtpDLX.NET evaluates received reply from the server.

Syntax

  • C#
  • VB.NET
delegate void PreTranslateReplyDelegate(object Sender, FtpReplyArgs Args);
The PreTranslateReplyEvent(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 PreTranslateReplyDelegate(ByVal Sender As Object, ByVal Args As FtpReplyArgs)
The PreTranslateReplyEvent(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

This event can be used for monitoring replies FTP server sent as result of our commands, before it is actually received by wodFtpDLX.NET. At this point you can change Args.ReplyCode and Args.ReplyText values to anything you like - and wodFtpDLX.NET will think it received reply as you defined it here.

Beware - what you're doing here is dangerous for wodFtpDLX.NET. You may break its internal mechanism of behavior, and strange results may occur. But - to provide you with more freedom over what's going on 'under the hood', we have provided this event for advanced users.

Note - this event will not fire in SFTP protocol.

Platforms

Windows