Server side of the SimDB socket interface. This class provides the client side functions to simplify the connections creation and the messages sending/receiving.
More...
#include <ClientHandler.h>
Server side of the SimDB socket interface. This class provides the client side functions to simplify the connections creation and the messages sending/receiving.
| void ClientHandler::closeConnection |
( |
| ) |
|
Close the connection to the server.
| bool ClientHandler::createSocket |
( |
| ) |
|
- Returns
- true if the socket creation succeeds (through the socket() function), false otherwise.
| char * ClientHandler::receiveFile |
( |
| ) |
|
- Returns
- Pointer to the base64-encoded file. We use a pointer for efficiency reasons.
| string ClientHandler::receiveMessage |
( |
| ) |
|
- Returns
- The message received by the server.
| void ClientHandler::sendMessage |
( |
const std::string & |
message | ) |
|
- Parameters
-
| message | The message to send to the server. |
| bool ClientHandler::startConnection |
( |
| ) |
|
- Returns
- true if the connection to the server succeeds (through the connect() function), false otherwise.
The documentation for this class was generated from the following files: