![]() |
GetData() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Private Function |
Declared in: DNSSocket.h |
CDNSSocket::WaitingRequests GetData() const;
Get data from the pending requests
//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)
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |