![]() |
CDNSManager() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Public Constructor |
Declared in: DNSManager.h |
DeclarationCDNSManager( const std::string strDNSServer, BOOL bTCP, BOOL bAsync, BOOL bAsyncConnect=FALSE);
DescriptionCtor and Dtor bTCP - Use DNS TCP bAsync - Use async sockets bAsyncConnect - Connect blockingly
Initializer Override(s)
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
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. |