Discuss this help topic in SecureBlackbox Forum

TElSSHClass.OnSend

TElSSHClass     See also     


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


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

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 the client/server needs to transfer the portion of encrypted data to the remote party. it is 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