Class KomodiaDNS::CDNSManager::
CDNSManager()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: CDNSManagerNext page: ~CDNSManager    Show member index
Public Constructor Declared in:
DNSManager.h

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

CDNSManager(
    const std::string strDNSServer,
    BOOL bTCP,
    BOOL bAsync,
    BOOL bAsyncConnect=FALSE);

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

Ctor and Dtor bTCP - Use DNS TCP bAsync - Use async sockets bAsyncConnect - Connect blockingly

'Initializer Override(s)' icon -- Shortcut to top of page. Initializer Override(s)

CErrorHandler()
m_pSocket(
NULL)    
m_strDNSServer(
strDNSServer)    
m_iParseThreads(
0)    
m_pCSection(
NULL)    
m_bInitialized(
FALSE)    
m_pThread(
NULL)    
m_dwTimeout(
0)    

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

try
{
    //Set our name
    SetName(CDNSManager_Class);

    //Set the values
    m_bAsync=bAsync;
    m_bTCP=bTCP;

    //Create the CS
    m_pCSection=COSManager::CreateCriticalSection();

    //Allocate our manager
    m_pSocket=new CDNSSocket(this,
                            m_strDNSServer,
                            m_bTCP,
                            m_bAsync,
                            bAsyncConnect);

    //Are we async ?
    if (m_bAsync)
    {
        //Create the timeout thread
        m_pThread=new CPeriodicThread(ThreadProc);

        //Set it's priority
        m_pThread->SetPriority(CGenericThread::tpAboveNormal);

        //Start it
        if (!m_pThread->Start(500,
                              (LPVOID)this))
            //Report it
            ReportError("CDNSManager","Failed to start periodic thread!");
    }
}
ERROR_HANDLER("CDNSManager")

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