Discuss this help topic in SecureBlackbox Forum

TElSimpleFTPSServer.OnBeforeSendReply

TElSimpleFTPSServer     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired when a server reply is to be sent.

Declaration

[C#]
    event TSBFTPSServerBeforeSendReplyEvent OnBeforeSendReply;
    delegate void TSBFTPSServerBeforeSendReplyEvent(Object Sender, ref int Code, ref string Reply, string Command);

[VB.NET]
    Event OnBeforeSendReply As TSBFTPSServerBeforeSendReplyEvent
    Delegate Sub TSBFTPSServerBeforeSendReplyEvent(ByVal Sender As Object, ByRef Code As Integer, ByRef Reply As String, ByVal Command As String)

[Pascal]
    property OnBeforeSendReply : TSBFTPSServerBeforeSendReplyEvent;
    TSBFTPSServerBeforeSendReplyEvent = procedure(Sender: TObject; var Code : integer; var Reply : string; const Command : string) of object;

[C++]
    void get_OnBeforeSendReply(TSBFTPSServerBeforeSendReplyEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBeforeSendReply(TSBFTPSServerBeforeSendReplyEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBFTPSServerBeforeSendReplyEvent)(void * _ObjectData, TObjectHandle Sender, int32_t &Code, char * pcReply, int32_t &szReply, const char * pcCommand, int32_t szCommand);

[PHP]
    TSBFTPSServerBeforeSendReplyEvent|callable|NULL get_OnBeforeSendReply()
    void set_OnBeforeSendReply(TSBFTPSServerBeforeSendReplyEvent|callable|NULL $Value)
    callable TSBFTPSServerBeforeSendReplyEvent(TObject $Sender, integer &$Code, string &$Reply, string $Command)

[Java]
    TSBFTPSServerBeforeSendReplyEvent getOnBeforeSendReply();
    void setOnBeforeSendReply(TSBFTPSServerBeforeSendReplyEvent Value);
    TSBFTPSServerBeforeSendReplyEvent.Callback OnBeforeSendReply = new TSBFTPSServerBeforeSendReplyEvent.Callback() {
        public void TSBFTPSServerBeforeSendReplyEventCallback(TObject Sender, TSBInteger Code, TSBString Reply, String Command) {
            //...
        }
    }

Parameters

  • Code - contains the server's return code.
  • Reply - contains text of the server's reply.
  • Command - contains the command to which the reply has been generated.
  • pcReply - contains text of the server's reply.
  • szReply - the length of pcReply.
  • pcCommand - contains the command to which the reply has been generated.
  • szCommand - the length of pcCommand.

Description

    This event is fired by TElSimpleFTPSServer before it sends a reply to client. It allows the application to change the reply text and code.

Discuss this help topic in SecureBlackbox Forum