Discuss this help topic in SecureBlackbox Forum

TElSSHTunnelConnection.OnClose

TElSSHTunnelConnection     See also     


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


This event is fired when the logical connection is closed

Declaration

[C#/Java]
    event TSSHChannelCloseEvent OnClose;
    delegate void TSSHChannelCloseEvent(Object Sender, TSSHCloseType CloseType);

[VB.NET]
    Event OnClose As TSSHChannelCloseEvent
    Delegate Sub TSSHChannelCloseEvent(ByVal Sender As Object, ByVal CloseType As TSSHCloseType)

[Pascal]
    property OnClose : TSSHChannelCloseEvent;
    TSSHChannelCloseEvent = procedure (Sender: TObject; CloseType : TSSHCloseType) of object;
    
    TSSHCloseType = (ctReturn, ctSignal, ctError);

[C++]
    void get_OnClose(TSSHChannelCloseEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnClose(TSSHChannelCloseEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHChannelCloseEvent)(void * _ObjectData, TObjectHandle Sender, TSSHCloseTypeRaw CloseType);

[PHP]
    TSSHChannelCloseEvent|callable|NULL get_OnClose()
    void set_OnClose(TSSHChannelCloseEvent|callable|NULL $Value)
    callable TSSHChannelCloseEvent(TObject $Sender, integer $CloseType)

Parameters

  • CloseType (eCloseType) - specifies reason of connection closing

Values


Description

    This event is fired when the logical connection is closed. No more data should be sent to this connection after receiving this event.
    Note, that you don't need to destroy the instance of this class. It is destroyed automatically by the tunnel class to which this connection belongs.

See also:     OnData     OnError     OnExtendedData    

Discuss this help topic in SecureBlackbox Forum