Class KomodiaDNS::CDNSManager::
OnDNSReceive()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: OnDNSErrorNext page: OnDNSReceive    Show member index
Private Function Declared in:
DNSManager.h

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

void OnDNSReceive(
    CDNSAnswers* pAnswers);

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

Receive an answer from the sockets

'Function Body' icon -- Shortcut to top of page. Function Body

try
{
    //Protect the answers
    std::auto_ptr<CDNSAnswers> pProtection(pAnswers);

    //Get the ID
    unsigned short usID;
    usID=pAnswers->GetDNSID();

    //Where we timed out ?
    if (WasTimedout(usID))
        return;

    //Get the data
    LPVOID lpData;
    lpData=GetRecord(usID);

    //Release the protection
    pProtection.release();

    //Fire the event
    OnDNSReceive(pAnswers,lpData);

    //Delete the record
    RemoveRecord(usID);
}
ERROR_HANDLER("OnDNSReceive")

'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.