Discuss this help topic in SecureBlackbox Forum

TElSSHLocalPortForwarding.OnAccept

TElSSHLocalPortForwarding     


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


This event is fired when new incoming connection is accepted.

Declaration

[C#/Java]
    event TSBSSHSocketAcceptEvent OnAccept;
    delegate void TSBSSHSocketAcceptEvent(Object Sender, TElSocket Socket, ref bool Reject);

[VB.NET]
    Event OnAccept As TSBSSHSocketAcceptEvent
    Delegate Sub TSBSSHSocketAcceptEvent(ByVal Sender As Object, ByVal Socket As TElSocket, ByRef Reject As Boolean)

[Pascal]
    property OnAccept : TSBSSHSocketAcceptEvent;
    TSBSSHSocketAcceptEvent = procedure (Sender: TObject; Socket : TElSocket; var Reject : boolean);

[C++]
    void get_OnAccept(TSBSSHSocketAcceptEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnAccept(TSBSSHSocketAcceptEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSSHSocketAcceptEvent)(void * _ObjectData, TObjectHandle Sender, TElSocketHandle Socket, int8_t &Reject);

[PHP]
    TSBSSHSocketAcceptEvent|callable|NULL get_OnAccept()
    void set_OnAccept(TSBSSHSocketAcceptEvent|callable|NULL $Value)
    callable TSBSSHSocketAcceptEvent(TObject $Sender, TElSocket $Socket, bool &$Reject)

Parameters

  • Socket - incoming connection socket
  • Reject - set this parameter to True to drop the connection

Description

    This event is fired by TElSSHLocalPortForwarding when new incoming connection is accepted.
Set Reject parameter to True to drop the connection.

Discuss this help topic in SecureBlackbox Forum