Discuss this help topic in SecureBlackbox Forum

TElFTPSServer.OnExtPassiveModeRequest

TElFTPSServer     See also     


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


This event is fired when EPSV command is received.

Declaration

[C#]
    event TSBFTPSServerExtPassiveModeRequestEvent OnExtPassiveModeRequest;
    delegate void TSBFTPSServerExtPassiveModeRequestEvent(Object Sender, string Protocol, ref int Port, ref bool Success);

[VB.NET]
    Event OnExtPassiveModeRequest As TSBFTPSServerExtPassiveModeRequestEvent
    Delegate Sub TSBFTPSServerExtPassiveModeRequestEvent(ByVal Sender As Object, ByVal Protocol As String, ByRef Port As Integer, ByRef Success As Boolean)

[Pascal]
    property OnExtPassiveModeRequest : TSBFTPSServerExtPassiveModeRequestEvent;
    TSBFTPSServerExtPassiveModeRequestEvent = procedure(Sender: TObject; const Protocol : string; var Port : integer; var Success : boolean) of object;

[C++]
    void get_OnExtPassiveModeRequest(TSBFTPSServerExtPassiveModeRequestEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnExtPassiveModeRequest(TSBFTPSServerExtPassiveModeRequestEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBFTPSServerExtPassiveModeRequestEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcProtocol, int32_t szProtocol, int32_t &Port, int8_t &Success);

[PHP]
    TSBFTPSServerExtPassiveModeRequestEvent|callable|NULL get_OnExtPassiveModeRequest()
    void set_OnExtPassiveModeRequest(TSBFTPSServerExtPassiveModeRequestEvent|callable|NULL $Value)
    callable TSBFTPSServerExtPassiveModeRequestEvent(TObject $Sender, string $Protocol, integer &$Port, bool &$Success)

[Java]
    TSBFTPSServerExtPassiveModeRequestEvent getOnExtPassiveModeRequest();
    void setOnExtPassiveModeRequest(TSBFTPSServerExtPassiveModeRequestEvent Value);
    TSBFTPSServerExtPassiveModeRequestEvent.Callback OnExtPassiveModeRequest = new TSBFTPSServerExtPassiveModeRequestEvent.Callback() {
        public void TSBFTPSServerExtPassiveModeRequestEventCallback(TObject Sender, String Protocol, TSBInteger Port, TSBBoolean Success) {
            //...
        }
    }

Parameters

  • Protocol - specifies the network protocol (IPv6 normally).
  • Port - specifies the port on which the server should be listening.
  • Success - set this parameter to True if the passive mode is allowed.
  • pcProtocol - specifies the network protocol (IPv6 normally).
  • szProtocol - specifies the length of pcProtocol.

Description

    This event is fired when a client requests an extended passive mode. Specify the port number and set Success parameter to True if the request is granted.

See also:     OnPassiveModeRequest    

Discuss this help topic in SecureBlackbox Forum