![]() |
AddData() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Private Function |
Declared in: DNSSocket.h |
Declaration
void AddData(
const char* pData,
unsigned short usSize,
LPVOID lpData);
DescriptionAdd data to the buffer
Function Body
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")
See Also
This web site was generated
using Surveyor V4.50.811.1. Click
here
for more information. |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |