Discuss this help topic in SecureBlackbox Forum

TElSSHClass.OnSend

TElSSHClass     See also     


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


This event is fired when the component needs to transfer the encrypted data to the peer.

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 the client/server needs to transfer the portion of encrypted data to the remote party. It's a good idea to call send function from this event's handler.

You must handle this event in any case. There is no other way to pass the encrypted data to the remote party!

See also:     OnReceive    

Discuss this help topic in SecureBlackbox Forum