Discuss this help topic in SecureBlackbox Forum

TElSSHServer.OnReceive

TElSSHServer     See also     


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


This event is fired when TElSSHServer needs more data

Declaration

[C#/Java]
    event TSSHReceiveEvent OnReceive;
    delegate void TSSHReceiveEvent(object Sender, ref byte[] Buffer, int MaxSize, [out] 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 TElSSHServer wants a new portion of encrypted data from the client. 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 client to TElSSHServer, except this event!

See also:     OnSend    

Discuss this help topic in SecureBlackbox Forum