BeforeSendReply Event
Notifies the application of a command reply being sent.
Syntax
typedef struct { __int64 ConnectionID; int Code; String Reply; String Command; } TsbxFTPServerBeforeSendReplyEventParams; typedef void __fastcall (__closure *TsbxFTPServerBeforeSendReplyEvent)(System::TObject* Sender, TsbxFTPServerBeforeSendReplyEventParams *e); __property TsbxFTPServerBeforeSendReplyEvent OnBeforeSendReply = { read=FOnBeforeSendReply, write=FOnBeforeSendReply };
Remarks
The component fires this event to tell the application that a command reply is about to be sent. The Command parameter indicates the command that induced the reply, and Code and Reply indicate the pre-generated response.
You can alter the response parameters in your code to send bespoke replies.