![]() |
GetData() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Private Function |
Declared in: DNSSocket.h |
DeclarationCDNSSocket::WaitingRequests GetData() const;
DescriptionGet data from the pending requests
Function Body
//Empty data
WaitingRequests aEmptyData;
aEmptyData.pData=NULL;
aEmptyData.usSize=0;
aEmptyData.lpData=NULL;
try
{
//Lock first
CCriticalAutoRelease aRelease(m_pCSectionDeque);
//Do we have data
if (m_aPendingData.empty())
return aEmptyData;
//Get the front
WaitingRequests aData;
aData=m_aPendingData.front();
//Remove the front
m_aPendingData.pop_front();
//Exit
return aData;
}
ERROR_HANDLER_RETURN("GetData",aEmptyData)
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. |