Discuss this help topic in SecureBlackbox Forum

TElSSHPublicKeyServer.OnSend

TElSSHPublicKeyServer     See also     


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


This event is fired when TElSSHPublicKeyServer needs to transfer the data to the client

Declaration

[C#]
    event TSBSSHPublicKeySendEvent OnSend;
    delegate void TSBSSHPublicKeySendEvent(Object Sender, byte[] Buffer, int Offset, int Size);

[VB.NET]
    Event OnSend As TSBSSHPublicKeySendEvent
    Delegate Sub TSBSSHPublicKeySendEvent(ByVal Sender As Object, ByVal Buffer As Byte(), ByVal Offset As Integer, ByVal Size As Integer)

[Pascal]
    property OnSend : TSBSSHPublicKeySendEvent;
    TSSHSendEvent = procedure (Sender: TObject; Buffer : pointer; Size : longint) of object;

[C++]
    void get_OnSend(TSBSSHPublicKeySendEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnSend(TSBSSHPublicKeySendEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSSHPublicKeySendEvent)(void * _ObjectData, TObjectHandle Sender, void * Buffer, int32_t Size);

[PHP]
    TSBSSHPublicKeySendEvent|callable|NULL get_OnSend()
    void set_OnSend(TSBSSHPublicKeySendEvent|callable|NULL $Value)
    callable TSBSSHPublicKeySendEvent(TObject $Sender, TSBPointer|NULL $Buffer, integer $Size)

[Java]
    TSBSSHPublicKeySendEvent getOnSend();
    void setOnSend(TSBSSHPublicKeySendEvent Value);
    TSBSSHPublicKeySendEvent.Callback OnSend = new TSBSSHPublicKeySendEvent.Callback() {
        public void TSBSSHPublicKeySendEventCallback(TObject arg0, byte[] arg1, int arg2, int arg3) {
            //...
        }
    }

Parameters

  • Buffer - The buffer with encrypted data
  • Size - The length of the data in buffer (in bytes)
  • Offset - The offset from the array beginning

Description

    This event is fired when TESSHPublicKeyServer needs to transfer the portion of data to the client. it is a good idea to write data to logical tunnel connection inside a handler of this event.

You must handle this event in any case. There is no other way to pass the encrypted data from TElSSHPublicKeyServer to client, except this event!

See also:     OnReceive    

Discuss this help topic in SecureBlackbox Forum