Discuss this help topic in SecureBlackbox Forum

TElSimpleSSHClient.OnSend

TElSimpleSSHClient     See also     


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


This event is fired when TElSimpleSSHClient needs to transfer the encrypted data to the server

Declaration

[C#]
    event TSSHSendEvent OnSend;
    delegate void TSSHSendEvent(Object Sender, byte[] Buffer);

[VB.NET]
    Event OnSend As TSSHSendEvent
    Delegate Sub TSSHSendEvent(ByVal Sender As Object, ByVal Buffer As Byte())

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

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

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

[Java]
    TSSHSendEvent getOnSend();
    void setOnSend(TSSHSendEvent Value);
    TSSHSendEvent.Callback OnSend = new TSSHSendEvent.Callback() {
        public void TSSHSendEventCallback(TObject arg0, byte[] arg1) {
            //...
        }
    }

Parameters

  • Buffer - The buffer with encrypted data
  • Size - The length of the data in buffer (in bytes)

Description

    This event is fired when TElSimpleSSHClient needs to transfer the portion of encrypted data to the server. it is a good idea to call a send function from this event's handler.

You must handle this event, if you don't use built-in sockets (see UseInternalSocket property). There is no other way to pass the encrypted data from TElSimpleSSHClient to server, except this event!

See also:     OnReceive    

Discuss this help topic in SecureBlackbox Forum