SecureBlackbox

200+ components and classes for all aspects of digital security of your data

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


TElSSLClient.OnReceive

TElSSLClient     See also     


 

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

 

Declaration

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

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

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

[C++]
    not implemented;

   

Parameters

  • 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.
   

Description

    This event is fired by TElSSLClient 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 Buffer with the amount of data no more than Length bytes and return the number of bytes written in Received parameter.

   

See also:     DataAvailable     OnData    

 
Back to top