Discuss this help topic in SecureBlackbox Forum

TElCustomSSHTunnel.OnOpen

TElCustomSSHTunnel     See also     


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


This event is fired when new logical connection is established

Declaration

[C#]
    event TTunnelEvent OnOpen;
    delegate void TTunnelEvent(Object Sender, TElSSHTunnelConnection TunnelConnection);

[VB.NET]
    Event OnOpen As TTunnelEvent
    Delegate Sub TTunnelEvent(ByVal Sender As Object, ByVal TunnelConnection As TElSSHTunnelConnection)

[Pascal]
    property OnOpen : TTunnelEvent;
    TTunnelEvent = procedure (Sender: TObject; TunnelConnection : TElSSHTunnelConnection) of object;

[C++]
    void get_OnOpen(TTunnelEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnOpen(TTunnelEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TTunnelEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHTunnelConnectionHandle TunnelConnection);

[PHP]
    TTunnelEvent|callable|NULL get_OnOpen()
    void set_OnOpen(TTunnelEvent|callable|NULL $Value)
    callable TTunnelEvent(TObject $Sender, TElSSHTunnelConnection $TunnelConnection)

[Java]
    TTunnelEvent getOnOpen();
    void setOnOpen(TTunnelEvent Value);
    TTunnelEvent.Callback OnOpen = new TTunnelEvent.Callback() {
        public void TTunnelEventCallback(TObject Sender, TElSSHTunnelConnection TunnelConnection) {
            //...
        }
    }

Parameters

  • TunnelConnection - The new logical connection

Description

    This event is fired when new logical connection is established. An instance of Connection class, which represents the newly established connection, is passed as parameter. You may send data to this connection until OnClose event is fired.

See also:     OnClose     OnError    

Discuss this help topic in SecureBlackbox Forum