DataArrival
Description
Event that fires when data has arrived.
Good to know: This is the one and only method for receiving data whether you are writing a server or a client.
Remarks
This event fires when data has been received from a remote host. The SocketHandle parameter indicates the particular socket on which data contained in the Data parameter has arrived for. The Data parameter contains an array containing all data.
Note that you must use the RegisterMsgSinkDataArrival function to register your OnDataArrival function prototype in order to receive data.
Prototype
VOID CSockQ::OnDataArrival(SOCKET SocketHandle, const CHAR* pData, LONG DataLen)
Last updated