Classes | Defines | Enumerations | Functions

string_socket.h File Reference

#include "../common/utilit.h"
Include dependency graph for string_socket.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

Defines

Enumerations

Functions


Define Documentation

#define SOCKET   int

Enumeration Type Documentation

Enumerator:
neSuccess 
neNetworkError 
neTimeout 
neProtocolError 
neSubcorpusNotFound 
neInternalReadAccessError 
neCouldNotOpenSocket 
neCouldNotSendData 
neCouldNotReceiveData 
Enumerator:
pdWeakDensity 
pdMediumDensity 
pdHeavyDensity 

Function Documentation

string GetNetworkErrorString ( const NetworkErrorsEnum t  ) 
bool SendString ( int  client_fd,
const char *  Str,
uint32_t  StrLen,
string &  ErrorStr 
)

References send_buffer().

Referenced by CHost::AnswerByRequest(), CDDCServerListenHost::GetFirstHitsFromCorpora(), CDDCServerListenHost::GetHitStringsFromOneCorpora(), and SaveTrigger().

Here is the call graph for this function:

Here is the caller graph for this function:

NetworkErrorsEnum RecieveString ( int  client_fd,
string &  Result,
int  TimeOut 
)

References neSuccess, and recieve_buffer().

Referenced by CHost::AnswerByRequest(), CDDCServerListenHost::GetFirstHitsFromCorpora(), and CDDCServerListenHost::GetHitStringsFromOneCorpora().

Here is the call graph for this function:

Here is the caller graph for this function:

bool SetSocketRecieveBuffer ( int  socket_fd,
int  BufferSize 
)

Referenced by CHost::RunThread().

Here is the caller graph for this function:

bool SetSocketSendBuffer ( int  socket_fd,
int  BufferSize 
)
bool SocketInitialize ( bool  bReadFromLocalFile  ) 

Referenced by ListenerThread(), and main().

Here is the caller graph for this function:

bool SocketDeinitialize (  ) 

Referenced by ListenerThread(), main(), and UnloadData().

Here is the caller graph for this function:

bool LoadHosts ( string  Path,
vector< CHost > &  Hosts 
)

References FileExists(), pdMediumDensity, CHost::ReadFromString(), and Trim().

Referenced by LoadDDCServer(), and LoadLocalCorpora().

Here is the call graph for this function:

Here is the caller graph for this function:

bool CloseSocket ( int  l_socket  )