EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElSecureServer.OnReceive

TElSecureServer     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 IElSecureServerXEvents.OnReceive(MaxSize As Long, Buffer As Byte())

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

[DLL]
    __stdcall void SBServerSetOnReceive(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 TElSecureServer 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 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 was placed to the buffer.
 
 

Description

    This event is fired by TElSecureServer 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 in Written parameter.

 
 

See also:     DataAvailable     OnData    

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