plumbing::endpoint_client_stdout Class Reference

#include <stdout.h>

Inheritance diagram for plumbing::endpoint_client_stdout:
plumbing::endpoint_client plumbing::endpoint

Public Member Functions

virtual ~endpoint_client_stdout ()

Static Public Member Functions

static pointer create (const std::string &hostname, int port)
static pointer create (const std::string &hostname, const std::string &port)

Protected Member Functions

void data_received (const void *data, size_t nbytes)

Private Member Functions

 endpoint_client_stdout (const std::string &hostname, int port)
 endpoint_client_stdout (const std::string &hostname, const std::string &port)
 endpoint_client_stdout ()
 endpoint_client_stdout (const endpoint_client_stdout &)
endpoint_client_stdoutoperator= (const endpoint_client_stdout &)

Detailed Description

The plumbing::endpoint_client_stdout class is used to represent a plumbing::reactor client that simply prints all received data on the standard output.

Definition at line 30 of file stdout.h.


Constructor & Destructor Documentation

plumbing::endpoint_client_stdout::~endpoint_client_stdout (  )  [virtual]

The destructor.

Definition at line 25 of file stdout.cc.

plumbing::endpoint_client_stdout::endpoint_client_stdout ( const std::string &  hostname,
int  port 
) [private]

A constructor. It is private on purpose, use a create class method instead.

Parameters:
hostname The name of the remote host. May be a dotted-quad or a string to be looked-up via gethostbyname.
port The port number.

Definition at line 30 of file stdout.cc.

plumbing::endpoint_client_stdout::endpoint_client_stdout ( const std::string &  hostname,
const std::string &  port 
) [private]

A constructor.

Parameters:
hostname The name of the remote host. May be a dotted-quad or a string to be looked-up via gethostbyname.
port The port number. May be a string service name ("ssh") or a numeric port number ("22").

Definition at line 45 of file stdout.cc.

plumbing::endpoint_client_stdout::endpoint_client_stdout (  )  [private]

The default constructor. Do not use.

plumbing::endpoint_client_stdout::endpoint_client_stdout ( const endpoint_client_stdout  )  [private]

The copy constructor. Do not use.


Member Function Documentation

plumbing::endpoint::pointer plumbing::endpoint_client_stdout::create ( const std::string &  hostname,
const std::string &  port 
) [static]

The create class method id used to create new dynamically allocated instances of this class.

Parameters:
hostname The name of the remote host. May be a dotted-quad or a string to be looked-up via gethostbyname.
port The port number. May be a string service name ("ssh") or a numeric port number ("22").

Definition at line 53 of file stdout.cc.

plumbing::endpoint::pointer plumbing::endpoint_client_stdout::create ( const std::string &  hostname,
int  port 
) [static]

The create class method id used to create new dynamically allocated instances of this class.

Parameters:
hostname The name of the remote host. May be a dotted-quad or a string to be looked-up via gethostbyname.
port The port number.

Definition at line 38 of file stdout.cc.

void plumbing::endpoint_client_stdout::data_received ( const void *  data,
size_t  nbytes 
) [protected, virtual]

The data_received method is called by process_read whenever new data arrived from the server.

Parameters:
data The data from the server
nbytes The size of the data from the server. This will be zero when the remote server closes the connection.

Implements plumbing::endpoint_client.

Definition at line 61 of file stdout.cc.

endpoint_client_stdout& plumbing::endpoint_client_stdout::operator= ( const endpoint_client_stdout  )  [private]

The assignment operator. Do not use.


The documentation for this class was generated from the following files:
Generated on Thu Sep 16 14:51:27 2010 for Plumbing by  doxygen 1.6.3