![]() |
CRealTimeTraceRouteSocket() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
| Public Constructor |
Declared in: RealTimeTraceRouteSocket.h |
DeclarationCRealTimeTraceRouteSocket( std::string sDNSServer, BOOL bDNSTcp, BOOL bMultithreaded=TRUE);
Descriptionctor and dtor
Initializer Override(s)
Function Body
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")
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. |