Discuss this help topic in SecureBlackbox Forum


TElSimpleSSLClient     See also     

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

This event is used to read the data from the socket.


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

    Event OnReceive As TSBReceiveEvent
    Delegate Sub TSBReceiveEvent(ByVal Sender As Object, ByRef Buffer As Byte(), ByVal MaxSize As Integer, Out Written As Integer)

    property OnReceive : TSBReceiveEvent;
    TSBReceiveEvent = procedure (Sender: TObject; Buffer : Pointer; MaxSize : LongInt; out Written : LongInt) of object;

    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);

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

    not available


  • Buffer - the buffer that should be filled with data which were read from the socket by the application.
  • 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 were placed to the buffer.


    This event is fired by TElSimpleSSLClient when it needs to read some data from the socket. The application should fill the buffer Buffer with the amount of data no more than Length bytes and return the number of bytes written in Received parameter. The event is used when UseInternalSocketis false.

See also:     UseInternalSocket    

Discuss this help topic in SecureBlackbox Forum