Used to send an image to a Server. More...
#include <Client.h>
Public Member Functions | |
Client (std::string hostname, int port) | |
Constructor. | |
~Client () | |
Destructor. | |
void | openImage (Data &header) |
Sends a message to the Server to open a new image. | |
void | sendPixels (Data &data) |
Sends a section of image data to the Server. | |
void | closeImage () |
Sends a message to the Server that the Clients has finished. | |
Friends | |
class | Server |
Used to send an image to a Server.
The Client class is created each time an application wants to send an image to the Server. Once it is instantiated the application should call openImage(), send(), and closeImage() to send an image to the Server.
Client::Client | ( | std::string | hostname, | |
int | port | |||
) |
Constructor.
Creates a new Client object and tell it to connect any messages to the specified host/port.
void Client::openImage | ( | Data & | header | ) |
void Client::sendPixels | ( | Data & | data | ) |
void Client::closeImage | ( | ) |