SecureBlackbox 2020 C++ Edition

Questions / Feedback?

BeforeSendReply Event

Notifies the application of a command reply being sent.

Syntax

ANSI (Cross Platform)
virtual int FireBeforeSendReply(FTPServerBeforeSendReplyEventParams *e);
typedef struct {
int64 ConnectionID;
int Code;
char *Reply;
const char *Command; int reserved; } FTPServerBeforeSendReplyEventParams; Unicode (Windows) virtual INT FireBeforeSendReply(FTPServerBeforeSendReplyEventParams *e);
typedef struct {
LONG64 ConnectionID;
INT Code;
LPWSTR Reply;
LPCWSTR Command; INT reserved; } FTPServerBeforeSendReplyEventParams;
- (void)onBeforeSendReply:(long long)connectionID :(int*)code :(NSString**)reply :(NSString*)command;
#define EID_FTPSERVER_BEFORESENDREPLY 17

virtual INT SECUREBLACKBOX_CALL FireBeforeSendReply(LONG64 &lConnectionID, INT &iCode, LPSTR &lpszReply, LPSTR &lpszCommand);

Remarks

The class 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.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 C++ Edition - Version 20.0 [Build 8166]