Discuss this help topic in SecureBlackbox Forum


TElFTPSServer     See also     

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

This event is fired when a client requests passive data transfer mode.


    event TSBFTPSServerPassiveModeRequestEvent OnPassiveModeRequest;
    delegate void TSBFTPSServerPassiveModeRequestEvent(Object Sender, ref string Address, ref int Port, ref bool Success);

    Event OnPassiveModeRequest As TSBFTPSServerPassiveModeRequestEvent
    Delegate Sub TSBFTPSServerPassiveModeRequestEvent(ByVal Sender As Object, ByRef Address As String, ByRef Port As Integer, ByRef Success As Boolean)

    property OnPassiveModeRequest : TSBFTPSServerPassiveModeRequestEvent;
    TSBFTPSServerPassiveModeRequestEvent = procedure (Sender: TObject; var Address : string; var Port : integer; var Success : boolean) of object;

    void get_OnPassiveModeRequest(TSBFTPSServerPassiveModeRequestEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnPassiveModeRequest(TSBFTPSServerPassiveModeRequestEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBFTPSServerPassiveModeRequestEvent)(void * _ObjectData, TObjectHandle Sender, char * pcAddress, int32_t &szAddress, int32_t &Port, int8_t &Success);

    TSBFTPSServerPassiveModeRequestEvent|callable|NULL get_OnPassiveModeRequest()
    void set_OnPassiveModeRequest(TSBFTPSServerPassiveModeRequestEvent|callable|NULL $Value)
    callable TSBFTPSServerPassiveModeRequestEvent(TObject $Sender, string &$Address, integer &$Port, bool &$Success)

    TSBFTPSServerPassiveModeRequestEvent getOnPassiveModeRequest();
    void setOnPassiveModeRequest(TSBFTPSServerPassiveModeRequestEvent Value);
    TSBFTPSServerPassiveModeRequestEvent.Callback OnPassiveModeRequest = new TSBFTPSServerPassiveModeRequestEvent.Callback() {
        public void TSBFTPSServerPassiveModeRequestEventCallback(TObject Sender, TSBString Address, TSBInteger Port, TSBBoolean Success) {


  • Address - address on which to listen for incoming connections.
  • Port - port number on which to listen for incoming connections.
  • Success - set this parameter to True if the request has succeeded, and to False otherwise.
  • pcAddress - address on which to listen for incoming connections.
  • szAddress - the length of pcAddress.


    This event is fired by TElFTPSServer when it has received a request for passive mode data transfer. In passive mode, if the data connection is needed, the server opens listening socket and accepts data connection to it. Use parameter Success to specify whether the request has succeeded.

See also:     OnExtendedPassiveModeRequest     OnDataConnectionNeeded     OnDataConnectionClose     PassiveMode    

Discuss this help topic in SecureBlackbox Forum