Discuss this help topic in SecureBlackbox Forum

TElSimpleSFTPClient.OnSend

TElSimpleSFTPClient     See also     


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


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

Declaration

[C#/Java]
    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)

Parameters

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

Description

    This event is fired when TElSimpleSFTPClient needs to transfer the portion of encrypted data to the server. It's 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 TElSimpleSFTPClient to server, except this event!

See also:     UseInternalSocket     OnReceive    

Discuss this help topic in SecureBlackbox Forum