|
xale-db 1.0
minimal SQL engine, written in c++
|
#include <TcpClient.h>

Public Member Functions | |
| TcpClient () | |
| Constructor. | |
| ~TcpClient () | |
| Destructor. | |
| bool | connect (const std::string &ip, int port) |
| Connects to the server at the specified IP and port. | |
| int | send (const std::string *data, size_t size) |
| Sends data to the server. | |
| int | receive (std::string *buffer, size_t size) |
| Receives data from the server. | |
| void | close () |
| Closes the connection. | |
| Xale::Net::TcpClient::TcpClient | ( | ) |
Constructor.
| Xale::Net::TcpClient::~TcpClient | ( | ) |
Destructor.
| void Xale::Net::TcpClient::close | ( | ) |
Closes the connection.
| bool Xale::Net::TcpClient::connect | ( | const std::string & | ip, |
| int | port ) |
Connects to the server at the specified IP and port.
| int Xale::Net::TcpClient::receive | ( | std::string * | buffer, |
| size_t | size ) |
Receives data from the server.
| int Xale::Net::TcpClient::send | ( | const std::string * | data, |
| size_t | size ) |
Sends data to the server.