Discuss this help topic in SecureBlackbox Forum

TElSSHPublicKeyServer.OnReceive

TElSSHPublicKeyServer     See also     


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


This event is fired when TElSSHPublicKeyServer needs more data

Declaration

[C#]
    event TSBSSHPublicKeyReceiveEvent OnReceive;
    delegate void TSBSSHPublicKeyReceiveEvent(Object Sender, ref byte[] Buffer, int MaxSize, ref int Written);

[VB.NET]
    Event OnReceive As TSBSSHPublicKeyReceiveEvent
    Delegate Sub TSBSSHPublicKeyReceiveEvent(ByVal Sender As Object, ByRef Buffer As Byte(), ByVal MaxSize As Integer, ByRef Written As Integer)

[Pascal]
    property OnReceive : TSBSSHPublicKeyReceiveEvent;
    TSSHReceiveEvent = procedure (Sender: TObject; Buffer : pointer; MaxSize : longint; var Written: integer) of object;

[C++]
    void get_OnReceive(TSBSSHPublicKeyReceiveEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnReceive(TSBSSHPublicKeyReceiveEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSSHPublicKeyReceiveEvent)(void * _ObjectData, TObjectHandle Sender, void * Buffer, int32_t MaxSize, int32_t &Written);

[PHP]
    TSBSSHPublicKeyReceiveEvent|callable|NULL get_OnReceive()
    void set_OnReceive(TSBSSHPublicKeyReceiveEvent|callable|NULL $Value)
    callable TSBSSHPublicKeyReceiveEvent(TObject $Sender, TSBPointer|NULL $Buffer, integer $MaxSize, integer &$Written)

[Java]
    TSBSSHPublicKeyReceiveEvent getOnReceive();
    void setOnReceive(TSBSSHPublicKeyReceiveEvent Value);
    TSBSSHPublicKeyReceiveEvent.Callback OnReceive = new TSBSSHPublicKeyReceiveEvent.Callback() {
        public int TSBSSHPublicKeyReceiveEventCallback(TObject Sender, byte[] Buffer, int MaxSize) {
            //...
        }
    }

Parameters

  • Buffer - The buffer where to put encrypted data
  • MaxSize - The maximal needed size of data (in bytes)
  • Written - The real size of data that was passed

Description

    This event is fired when TElSSHPublicKeyServer wants a new portion of encrypted data from the client. it is a good idea to read data from 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 client to TElSSHPublicKeyServer, except this event!

See also:     OnSend    

Discuss this help topic in SecureBlackbox Forum