Discuss this help topic in SecureBlackbox Forum

TElSAMLIdentityProvider.OnReceive

TElSAMLIdentityProvider     See also     


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


This event is used to read the data received from the remote party.

Declaration

[C#]
    event TSBReceiveEvent OnReceive;
    delegate void TSBReceiveEvent(Object Sender, ref byte[] Buffer, int MaxSize, out int Written);

[VB.NET]
    Event OnReceive As TSBReceiveEvent
    Delegate Sub TSBReceiveEvent(ByVal Sender As Object, ByRef Buffer As Byte(), ByVal MaxSize As Integer, Out Written As Integer)

[Pascal]
    event OnReceive : TSBReceiveEvent delegate FOnReceive;
    TSBReceiveEvent = procedure(Sender : TObject; Buffer : pointer; MaxSize : Int32; var Written : Int32) of object;

[C++]
    void get_OnReceive(TSBReceiveEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnReceive(TSBReceiveEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBReceiveEvent)(void * _ObjectData, TObjectHandle Sender, void * Buffer, int32_t MaxSize, int32_t &Written);

[PHP]
    TSBReceiveEvent|callable|NULL get_OnReceive()
    void set_OnReceive(TSBReceiveEvent|callable|NULL $Value)
    callable TSBReceiveEvent(TObject $Sender, TSBPointer|NULL $Buffer, integer $MaxSize, integer &$Written)

[Java]
    TSBReceiveEvent getOnReceive();
    void setOnReceive(TSBReceiveEvent Value);
    TSBReceiveEvent.Callback OnReceive = new TSBReceiveEvent.Callback() {
        public void TSBReceiveEventCallback(TObject Sender, byte[] Buffer, int MaxSize, TSBInteger Written) {
            //...
        }
    }

Parameters

  • Buffer - the buffer where the received data should be stored by the handler.
  • MaxSize - the length of the buffer. Specifies the maximum number of bytes that can be written to the buffer.
  • Written - the amount of data that was actually copied to the buffer.

Description

    This event is fired by TElSAMLIdentityProvider when it needs to read some data from the socket. Usually this is caused by the call to DataAvailable. The application should fill the Buffer with the amount of data not more than MaxSize bytes and return the number of bytes written via the corresponding parameter.

See also:     OnSend     DataAvailable    

Discuss this help topic in SecureBlackbox Forum