Discuss this help topic in SecureBlackbox Forum


TElFTPSServer     See also     

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

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


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

    Event OnBeforeSendReply As TSBFTPSServerBeforeSendReplyEvent
    Delegate Sub TSBFTPSServerBeforeSendReplyEvent(ByVal Sender As Object, ByRef Code As Integer, ByRef Reply As String, ByVal Command As String)

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

    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);

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

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


  • 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.


    This event is fired by TElFTPSServer before it sends a reply to client. It allows the application to change the reply text and code. SendCustomReply method could be used to send a custom reply to the client.

See also:     SendCustomReply    

Discuss this help topic in SecureBlackbox Forum