Discuss this help topic in SecureBlackbox Forum

TElSSHClient.OnReceive

TElSSHClient     See also     


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


This event is fired when TElSSHClient needs more data

Declaration

[C#/Java]
    event TSSHReceiveEvent OnReceive;
    delegate void TSSHReceiveEvent(object Sender, ref byte[] Buffer, int MaxSize, [out] ref int Written);

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

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

[C++]
    not available

[PHP]
    not available

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 TElSSHClient wants a new portion of encrypted data from the server. It's a good idea to call recv function inside this event handler.

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

See also:     OnSend    

Discuss this help topic in SecureBlackbox Forum