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
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.
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.
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.
The assignment operator. Do not use.
The documentation for this class was generated from the following files: