EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElSecureClient.OnReceive

TElSecureClient     See also    


 

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

 
 

Declaration

[C#]
    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;

[VB6]
    Event IElSecureClientXEvents.OnReceive(MaxSize As Long, Buffer As Byte())

[ActiveX]
    HRESULT IElSecureClientXEvents.OnReceive([in] long MaxSize, [out] VARIANT * Buffer);

[DLL]
    __stdcall void SBClientSetOnReceive(HANDLE handle, OnReceiveProc code, long UserData);
    __stdcall (*OnReceiveProc)(HANDLE handle, long UserData, HANDLE Reserved, LPVOID Buffer, DWORD MaxSize, LPDWORD Written);
 
 

Parameters

  • [DLL]handle - handle to the TElSecureClient object that was returned by Constructor
  • [DLL]Code - pointer to the callback function that is called to validate credentials
  • [DLL]UserData - application-defined data that is passed back to the callback function
  • Buffer - the buffer that should be filled with data which were read from the socket by the application. [ActiveX]Buffer should be allocated by event handler. It must contain a one-dimentional zero-based safe array with elements of type unsigned char (byte).
  • MaxSize - the length of the buffer. Specifies the maximum number of bytes that can be written to the buffer.
    The maximal length of the buffer that should be returned by the event handler.
  • Written - the amount of data that were placed to the buffer.
 
 

Description

    This event is fired by TElSecureClient 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    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation