![]() |
AddData() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Private Function |
Declared in: DNSSocket.h |
void AddData( const char* pData, unsigned short usSize, LPVOID lpData);
Add data to the buffer
try { //Is it legal ? if (!pData || !usSize) { //Report it ReportError("AddData","Recieved null data!"); //Exit return; } //Perpare the data WaitingRequests aData; //Copy the memory aData.pData=new char[usSize]; memcpy(aData.pData, pData, usSize); //Rest of the data aData.lpData=lpData; aData.usSize=usSize; //Lock first CCriticalAutoRelease aRelease(m_pCSectionDeque); //Insert it m_aPendingData.push_back(aData); } ERROR_HANDLER("AddData")
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |