![]() |
CRealTimeTraceRouteSocket() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Constructor |
Declared in: RealTimeTraceRouteSocket.h |
CRealTimeTraceRouteSocket( std::string sDNSServer, BOOL bDNSTcp, BOOL bMultithreaded=TRUE);
ctor and dtor
try { //Set our name SetName(CRealTimeTraceRouteSocket_Class); //Same ping ID SetUseSameID(TRUE); //Create the manager m_pManager=new CRealTimeDNSManager(this, sDNSServer, bDNSTcp); //Create the CS m_pCSection=COSManager::CreateCriticalSection(); m_pCSectionResolve=COSManager::CreateCriticalSection(); m_pCSectionGeneral=COSManager::CreateCriticalSection(); //Initialize it if (!(m_bInitialized=m_pManager->Initialize())) //Report it ReportError("CRealTimeTraceRouteSocket","Failed to initialize DNS!"); else { //Set the timeout of the DNS m_pManager->SetDNSTimeout(15000); //Set the socket timeout m_pManager->SetConnectionTimeout(7500); //Set it to be multithreaded if (bMultithreaded) m_pManager->ParseMultithreaded(10); } } ERROR_HANDLER("CRealTimeTraceRouteSocket")
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |