Discuss this help topic in SecureBlackbox Forum

TElFTPSServer.OnPassiveModeRequest

TElFTPSServer     See also     


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


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

Declaration

[C#/Java]
    event TSBFTPSServerPassiveModeRequestEvent OnPassiveModeRequest;
    delegate void TSBFTPSServerPassiveModeRequestEvent(Object Sender, ref string Address, ref int Port, ref bool Success);

[VB.NET]
    Event OnPassiveModeRequest As TSBFTPSServerPassiveModeRequestEvent
    Delegate Sub TSBFTPSServerPassiveModeRequestEvent(ByVal Sender As Object, ByRef Address As String, ByRef Port As Integer, ByRef Success As Boolean)

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

[C++]
    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);

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

Parameters

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

Description

    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:     OnDataConnectionNeeded     OnDataConnectionClose     PassiveMode    

Discuss this help topic in SecureBlackbox Forum