SearchSECODatabaseAPI
NetworkHandler Class Reference

Public Member Functions

void sendData (const char *data, int dataSize)
 Send data to the database. More...
 
void sendData (std::string data)
 Send data to the database. More...
 
void openConnection (std::string server, std::string port)
 Opens a connection to the database.
 
std::string receiveData (bool stopOnNewLine=true)
 Receives data from the other side of the connection. More...
 

Static Public Member Functions

static NetworkHandlercreateHandler ()
 

Member Function Documentation

◆ receiveData()

std::string NetworkHandler::receiveData ( bool  stopOnNewLine = true)

Receives data from the other side of the connection.

Parameters
stopOnNewLineIf true, will stop listning when encountering a new line. If false, will stop when the connection stops.

◆ sendData() [1/2]

void NetworkHandler::sendData ( const char *  data,
int  dataSize 
)

Send data to the database.

Parameters
dataThe data to be send.
dataSizeThe size of the data array in bytes.

◆ sendData() [2/2]

void NetworkHandler::sendData ( std::string  data)
inline

Send data to the database.

Parameters
dataThe data to be send.

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