plumbing::endpoint_client_stdout Class Reference
#include <stdout.h>
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
virtual plumbing::endpoint_client_stdout::~endpoint_client_stdout |
( |
|
) |
[virtual] |
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. |
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"). |
plumbing::endpoint_client_stdout::endpoint_client_stdout |
( |
|
) |
[private] |
The default constructor. Do not use.
The copy constructor. Do not use.
Member Function Documentation
static 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"). |
static 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. |
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.
The assignment operator. Do not use.
The documentation for this class was generated from the following file: