Discuss this help topic in SecureBlackbox Forum

TElSftpClient.OnOpenConnection

TElSftpClient     See also     


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


This event is fired when SFTP connection is successfully established.

Declaration

[C#]
    event TNotifyEvent OnOpenConnection;
    delegate void TNotifyEvent(Object Sender);

[VB.NET]
    Event OnOpenConnection As TNotifyEvent
    Delegate Sub TNotifyEvent(ByVal Sender As Object)

[Pascal]
    property OnOpenConnection : TNotifyEvent;

[C++]
    void get_OnOpenConnection(TNotifyEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnOpenConnection(TNotifyEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TNotifyEvent)(void * _ObjectData, TObjectHandle Sender);

[PHP]
    TNotifyEvent|callable|NULL get_OnOpenConnection()
    void set_OnOpenConnection(TNotifyEvent|callable|NULL $Value)
    callable TNotifyEvent(TObject $Sender)

[Java]
    TNotifyEvent getOnOpenConnection();
    void setOnOpenConnection(TNotifyEvent Value);
    TNotifyEvent.Callback OnOpenConnection = new TNotifyEvent.Callback() {
        public void TNotifyEventCallback(TObject Sender) {
            //...
        }
    }

Description

    This event is fired by TElSftpClient when the negotiation is successfully completed. After this event is fired the file operations may be performed.
    In synchronous mode this event is fired before SFTP-connection is actually established. You must invoke Open method after this event is fired.
     Note, don't invoke Open method from OnOpenConnection handler.

See also:     OnCloseConnection    

Discuss this help topic in SecureBlackbox Forum