![]() |
CDNSManager() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Constructor |
Declared in: DNSManager.h |
CDNSManager( const std::string strDNSServer, BOOL bTCP, BOOL bAsync, BOOL bAsyncConnect=FALSE);
Ctor and Dtor bTCP - Use DNS TCP bAsync - Use async sockets bAsyncConnect - Connect blockingly
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")
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |