xale-db 1.0
minimal SQL engine, written in c++
Loading...
Searching...
No Matches
Xale::Net::TcpClient Class Reference

#include <TcpClient.h>

Collaboration diagram for Xale::Net::TcpClient:
Collaboration graph

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.

Constructor & Destructor Documentation

◆ TcpClient()

Xale::Net::TcpClient::TcpClient ( )

Constructor.

◆ ~TcpClient()

Xale::Net::TcpClient::~TcpClient ( )

Destructor.

Member Function Documentation

◆ close()

void Xale::Net::TcpClient::close ( )

Closes the connection.

◆ connect()

bool Xale::Net::TcpClient::connect ( const std::string & ip,
int port )

Connects to the server at the specified IP and port.

◆ receive()

int Xale::Net::TcpClient::receive ( std::string * buffer,
size_t size )

Receives data from the server.

◆ send()

int Xale::Net::TcpClient::send ( const std::string * data,
size_t size )

Sends data to the server.


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