Class KomodiaDNS::CDNSSocket::
GetData()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: FlushNext page: GetThreadManager    Show member index
Private Function Declared in:
DNSSocket.h

'Declaration' icon -- Shortcut to top of page. Declaration

CDNSSocket::WaitingRequests GetData() const;

'Description' icon -- Shortcut to top of page. Description

Get data from the pending requests

'Function Body' icon -- Shortcut to top of page. 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' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CErrorHandler  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!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.