![]() |
KomodiaDNS::CDNSManager | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class |
Declared in: DNSManager.h |
Copyright (c) 2000-2003 Barak Weichselbaum <barak@komodia.com> All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS `AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Contact info:
Site: http://www.komodia.com Main contact: barak@komodia.com For custom projects, consulting, or other paid services: sales@komodia.com
![]() |
IDMap | m_aData | Our query data |
![]() |
BOOL | m_bAsync | Status flags |
![]() |
BOOL | m_bInitialized | Are we initialized |
![]() |
BOOL | m_bTCP | |
![]() |
DWORD | m_dwTimeout | The timeout |
![]() |
int | m_iParseThreads | Do we parse multithreaded |
![]() |
CGenericCriticalSection * | m_pCSection | Our cs |
![]() |
CDNSSocket * | m_pSocket | Our socket |
![]() |
CPeriodicThread * | m_pThread | Our periodic thread |
![]() |
std::string | m_strDNSServer | Our DNS server |
![]() |
CDNSManager( const CDNSManager& rManager ) |
No copy Ctor | |
![]() |
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 |
![]() |
virtual |
![]() |
void | AddRecord( unsigned short usID, LPVOID lpLocalIDData, DWORD dwTimeout, const CDNSQuery& rQuery ) |
Add a record |
![]() |
unsigned short | GetDNSEntry( const std::string& rAddress, unsigned short usID=0, LPVOID lpLocalIDData=NULL ) |
Get the dns entry of an address usID - ID of the DNS (if zero, library will allocate one) lpLocalIDData - Custome user data |
![]() |
unsigned short | GetDNSEntry( unsigned long ulAddress, unsigned short usID=0, LPVOID lpLocalIDData=NULL ) |
|
![]() |
virtual LPDnsHeaderHeader | GetDNSHeaderHeader( unsigned short usID, unsigned short usFlags, unsigned short usQuestions, unsigned short usAnswers=0 ) const |
Get a generic DNS |
![]() |
LPVOID | GetRecord( unsigned short usID ) const |
Get a record |
![]() |
CThreadPool * | GetThreadManager() const |
Get the thread manager |
![]() |
BOOL | Initialize ourselves | |
![]() |
BOOL | IsInitialized() const |
Are we initialized |
![]() |
virtual void | OnDNSError( int iErrorCode, LPVOID lpLocalIDData ) |
Events for user to override |
![]() |
void | OnDNSReceive( CDNSAnswers* pAnswers ) |
Receive an answer from the sockets |
![]() |
virtual void | OnDNSReceive( CDNSAnswers* pAnswers, LPVOID lpLocalIDData ) |
|
![]() |
virtual void | OnDNSTimeout( const CDNSQuery& rQuery, LPVOID lpLocalIDData ) |
|
![]() |
CDNSManager & | operator =( const CDNSManager& rManager ) |
No copy operator |
![]() |
static std::string | ParseAddress( const std::string& rAddress ) |
Parse an address, convert it to DNS |
![]() |
void | ParseMultithreaded( int iThreadNumber ) |
Allow to parse multithreaded |
![]() |
void | ParseMultithreaded( CThreadPool* pThreadManager ) |
of namespace |
![]() |
unsigned short | QueryDNS( const CDNSQuery& rQuery, unsigned short usID=0, LPVOID lpLocalIDData=NULL ) |
Send a query (Returns the Query ID) |
![]() |
CDNSAnswers * | Receive() |
Receive data |
![]() |
void | RemoveRecord( unsigned short usID ) |
Remove a record |
![]() |
BOOL | SetConnectionTimeout( DWORD dwMS ) |
Set the timeout (for the sockets) |
![]() |
void | SetDNSTimeout( DWORD dwMS ) |
Set the timeout for the DNS |
![]() |
static BOOL | ThreadProc( CPeriodicThread::ThreadStage aStage, LPVOID lpData ) |
Thread proc to iterate the records |
![]() |
void | Clean the data (incase we are static) | |
![]() |
BOOL | WasTimedout( unsigned short usID ) |
Did we timeout |
class CDNSSocket |
ErrorHandler.h | |
PeriodicThread.h | |
DNSAnswers.h | |
string | |
map |
stdafx.h | for precompiled header directive |
DNSManager.h | |
ErrorHandlerMacros.h | |
Array_ptr.h | |
OSManager.h | |
GenericCriticalSection.h | |
GenericThread.h | |
ThreadPool.h | |
DNSSocket.h | |
DNSQuery.h | |
memory |
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |