Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes

CHost Class Reference

#include <string_socket.h>

Inheritance diagram for CHost:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Public Attributes

Protected Member Functions

Private Member Functions

Private Attributes


Constructor & Destructor Documentation

CHost::CHost ( bool  bDoubleMessage,
ProtocolDensityEnum  pdProtocolDensity 
)

Member Function Documentation

void CHost::AnswerByRequest ( int  rConnectedSocket,
const struct sockaddr_in *  client_addr,
int  TimeOut,
bool &  bCloseSocket 
) [private]

References DDCCloseSocketString, Format(), GetNetworkErrorString(), m_CorporaName, m_LogFunction, m_pdProtocolDensity, neSuccess, pdHeavyDensity, ProcessSocketString(), RecieveString(), and SendString().

Referenced by RunThread().

Here is the call graph for this function:

Here is the caller graph for this function:

string CHost::ProcessSocketString ( const string &  S,
int  rConnectedSocket 
) [protected, virtual]

Reimplemented in CDDCCorpusListenHost, and CDDCServerListenHost.

Referenced by AnswerByRequest().

Here is the caller graph for this function:

bool CHost::ReadFromString ( string  S  ) 

References m_CorporaName, m_HostName, m_LocalPath, m_Port, and Trim().

Referenced by LoadHosts().

Here is the call graph for this function:

Here is the caller graph for this function:

void CHost::CreateListener (  ) 

References Format(), GetAddressStr(), ListenerThread(), m_CorporaName, and m_LogFunction.

Referenced by LoadDDCServer().

Here is the call graph for this function:

Here is the caller graph for this function:

void CHost::CopyAddressParametersFrom ( const CHost X  ) 

References m_CorporaName, m_HostName, m_LocalPath, and m_Port.

Referenced by LoadDDCServer(), LoadLocalCorpora(), and ReloadCorpus().

Here is the caller graph for this function:

void CHost::StopAcceptingThread (  ) 

References CloseSocket(), and m_ListenSocket.

Referenced by CDDCCorpusListenHost::~CDDCCorpusListenHost(), and CDDCServerListenHost::~CDDCServerListenHost().

Here is the call graph for this function:

Here is the caller graph for this function:

void CHost::RunThread (  ) 

References AnswerByRequest(), CloseSocket(), create_socket(), Format(), GetAddressStr(), m_bDoubleMessage, m_CorporaName, m_HostName, m_ListenSocket, m_LogFunction, m_Port, SetSocketRecieveBuffer(), and SOCKET.

Referenced by ListenerThread().

Here is the call graph for this function:

Here is the caller graph for this function:

int CHost::CreateAndConnectSocket ( string &  strError  )  const

References create_socket(), m_HostName, and m_Port.

Referenced by CDDCServerListenHost::GetFirstHitsFromCorpora().

Here is the call graph for this function:

Here is the caller graph for this function:

string CHost::GetAddressStr (  )  const

References Format(), m_HostName, and m_Port.

Referenced by CreateListener(), CDDCServerListenHost::GetFirstHitsFromCorpora(), CDDCServerListenHost::GetHitStringsFromOneCorpora(), and RunThread().

Here is the call graph for this function:

Here is the caller graph for this function:

const string & CHost::GetLocalPathOfIndex (  )  const

References m_LocalPath.

Referenced by CDDCCorpusListenHost::LoadHolder(), and ReloadCorpus().

Here is the caller graph for this function:


Member Data Documentation

string CHost::m_HostName [private]
int CHost::m_Port [private]
int CHost::m_ListenSocket [private]
bool CHost::m_bDoubleMessage [private]

Referenced by CHost(), and RunThread().

string CHost::m_LocalPath [private]

Referenced by AnswerByRequest(), and CHost().

void(* CHost::m_LogFunction)(const string &)

The documentation for this class was generated from the following files: