Discuss this help topic in SecureBlackbox Forum


TElSSHPublicKeyServer     See also     

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

This event is fired when TElSSHPublicKeyServer needs more data


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

    Event OnReceive As TSBSSHPublicKeyReceiveEvent
    Delegate Sub TSBSSHPublicKeyReceiveEvent(ByVal Sender As Object, ByRef Buffer As Byte(), ByVal MaxSize As Integer, ByRef Written As Integer)

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

    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);

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

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


  • 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


    This event is fired when TElSSHPublicKeyServer wants a new portion of encrypted data from the client. It's 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