![]() |
KomodiaDNS::CDNSSocket | ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Class |
Declared in: DNSSocket.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
![]() |
ConnectionStatus | m_aConnectionStatus | Our connection status |
![]() |
mutable PendingDeque | m_aPendingData | Our deque |
![]() |
BOOL | m_bAsync | |
![]() |
BOOL | m_bAsyncConnect | |
![]() |
BOOL | m_bOwners | Do we own the thread manager ? |
![]() |
BOOL | m_bUseTCP | Sockets settings |
![]() |
int | m_iTimeout | timeout counter |
![]() |
CGenericCriticalSection * | m_pCSection | Our critical section |
![]() |
CGenericCriticalSection * | m_pCSectionDeque | Our CS for the deque |
![]() |
CDNSManager * | m_pFather | Our father |
![]() |
CDNSTCPSocket * | m_pTCP | Our sockets |
![]() |
CThreadPool * | m_pThreadManager | Our worker thread manager |
![]() |
CDNSUDPSocket * | m_pUDP | |
![]() |
std::string | m_strDNSServer | Our DNS server |
![]() |
CDNSSocket( const CDNSSocket& rSocket ) |
No copy Ctor | |
![]() |
CDNSSocket( CDNSManager* pFather, const std::string strDNSServer, BOOL bTCP, BOOL bAsync, BOOL bAsyncConnect ) |
Ctor and Dtor |
![]() |
virtual |
![]() |
void | AddData( const char* pData, unsigned short usSize, LPVOID lpData ) |
Add data to the buffer |
![]() |
static void | DeleteProc( WaitingRequests& rRequest ) |
Proc for deleting the vector data |
![]() |
BOOL | Flush() |
Flush the data |
![]() |
CDNSSocket::WaitingRequests | GetData() const |
Get data from the pending requests |
![]() |
CThreadPool * | GetThreadManager() const |
Get the thread manager |
![]() |
BOOL | Initialize data | |
![]() |
CDNSSocket & | operator =( const CDNSSocket& rSocket ) |
No copy operator |
![]() |
CDNSAnswers * | ParseAnswer( char* pBuffer, char* pOriginalBuffer, int iBufferLengh, BOOL bFromThread=FALSE, BOOL bTCP=FALSE ) |
Parse the answer |
![]() |
CDNSAnswers * | Receive() |
Receive for block sockets |
![]() |
BOOL | Send( const char *pBuffer, unsigned short bufLen, LPVOID lpLocalIDData ) |
Send the buffer |
![]() |
void | SetConnectionStatus( ConnectionStatus aStatus ) |
Set the connection status |
![]() |
BOOL | SetConnectionTimeout( int iMS ) |
Set socket timeout |
![]() |
void | SetMultithreaded( int iThreadNumber ) |
Set multithreaded support |
![]() |
void | SetMultithreaded( CThreadPool* pThreadManager ) |
|
![]() |
void | ||
![]() |
void | SocketConnected( int iErrorCode ) |
|
![]() |
void | SocketError( int iErrorCode ) |
Indicte errors and timeout |
![]() |
CDNSAnswers * | SocketReceive( char* pBuffer, int iBufferLengh, BOOL bTCP=FALSE ) |
When we recieve an event |
![]() |
static void | ThreadProc( LPVOID lpParam ) |
Our thread proc, for the thread manager |
class CDNSTCPSocket | |
class CDNSUDPSocket |
ErrorHandler.h | |
UDPSocketAsync.h | |
string | |
deque |
stdafx.h | for precompiled header directive |
DNSSocket.h | |
ErrorHandlerMacros.h | |
Array_Ptr.h | |
OSManager.h | |
ThreadPool.h | |
GenericCriticalSection.h | |
DNSManager.h | |
DNSUDPSocket.h | |
DNSTCPSocket.h | |
algorithm |
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |