8#include <boost/asio.hpp>
10using boost::asio::ip::tcp;
21 void sendData(
const char* data,
int dataSize);
44 boost::asio::io_context ioContext;
Definition: Networking.h:13
void sendData(const char *data, int dataSize)
Send data to the database.
Definition: Networking.cpp:30
void sendData(std::string data)
Send data to the database.
Definition: Networking.h:27
std::string receiveData(bool stopOnNewLine=true)
Receives data from the other side of the connection.
Definition: Networking.cpp:35
void openConnection(std::string server, std::string port)
Opens a connection to the database.
Definition: Networking.cpp:15