rmanconnect::Client Class Reference

Used to send an image to a Server. More...

#include <Client.h>

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

void Client::openImage ( Data header  ) 

Sends a message to the Server to open a new image.

The header parameter is used to tell the Server the size of image buffer to allocate.

void Client::sendPixels ( Data data  ) 

Sends a section of image data to the Server.

Once an image is open a Client can use this to send a series of pixel blocks to the Server. The Data object passed must correctly specify the block position and dimensions as well as provide a pointer to pixel data.

void Client::closeImage (  ) 

Sends a message to the Server that the Clients has finished.

This tells the Server that a Client has finished sending pixel information for an image.


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

Generated on Fri Jan 8 19:16:27 2010 for RmanConnect by  doxygen 1.6.1