#include "../common/utilit.h"
Go to the source code of this file.
Classes
Defines
Enumerations
- enum NetworkErrorsEnum {
neSuccess = 0,
neNetworkError = 1,
neTimeout = 2,
neProtocolError = 3,
neSubcorpusNotFound = 4,
neInternalReadAccessError = 5,
neCouldNotOpenSocket = 6,
neCouldNotSendData = 7,
neCouldNotReceiveData = 8
}
- enum ProtocolDensityEnum { pdWeakDensity = 0,
pdMediumDensity = 1,
pdHeavyDensity = 2
}
Functions
Define Documentation
Enumeration Type Documentation
- Enumerator:
neSuccess |
|
neNetworkError |
|
neTimeout |
|
neProtocolError |
|
neSubcorpusNotFound |
|
neInternalReadAccessError |
|
neCouldNotOpenSocket |
|
neCouldNotSendData |
|
neCouldNotReceiveData |
|
- Enumerator:
pdWeakDensity |
|
pdMediumDensity |
|
pdHeavyDensity |
|
Function Documentation
bool SendString |
( |
int |
client_fd, |
|
|
const char * |
Str, |
|
|
uint32_t |
StrLen, |
|
|
string & |
ErrorStr | |
|
) |
| | |
bool SetSocketRecieveBuffer |
( |
int |
socket_fd, |
|
|
int |
BufferSize | |
|
) |
| | |
bool SetSocketSendBuffer |
( |
int |
socket_fd, |
|
|
int |
BufferSize | |
|
) |
| | |
bool SocketInitialize |
( |
bool |
bReadFromLocalFile |
) |
|
bool SocketDeinitialize |
( |
|
) |
|
bool LoadHosts |
( |
string |
Path, |
|
|
vector< CHost > & |
Hosts | |
|
) |
| | |
bool CloseSocket |
( |
int |
l_socket |
) |
|