Discuss this help topic in SecureBlackbox Forum

TElFTPSServer.OnBeforeSendReply

TElFTPSServer     See also     


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


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

Declaration

[C#/Java]
    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)

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