´╗┐ wclCommunication::wclServerConnectionDataEvent Macro
IrDA Framework
ContentsIndexHome
PreviousUpNext
wclCommunication::wclServerConnectionDataEvent Macro

The server's OnData event handler prototype.

Syntax
C++
#define wclServerConnectionDataEvent(_event_name_) \
    __event void _event_name_(void* Sender, CwclServerClientDataConnection* Client, \
        void* Data, unsigned long Size)
Parameters 
Description 
Sender 
The object that initiated the event.  
Client 
A CwclServerClientDataConnection object represents a remote client connection.  
Data 
The pointer to the received data buffer. It is guaranteed that the parameter points to a valid data buffer. The data buffer is valid only inside the event handler. If an application needs to use the data outside the event handle it must allocate own buffer and copy data into it.  
Size 
The data buffer size. It is guaranteed that the size is greater than 0.  
Copyright (c) 2006-2018. All rights reserved.