The abstract remote client. More...
#include <Client.h>
Public Member Functions | |
Client (const std::string &host="localhost", const uint16_t port=DEFAULT_PORT) | |
Create a new Client. | |
const std::string & | getHost () const |
Host value accessor. | |
uint16_t | getPort () const |
Port value accessor. | |
Static Public Attributes | |
static const unsigned int | DEFAULT_PORT = 80 |
Private Attributes | |
const std::string | host_ |
uint16_t | port_ |
The abstract remote client.
The abstract remote client contains parameters for common remote connections.
Client::Client | ( | const std::string & | host = "localhost" , |
const uint16_t | port = DEFAULT_PORT |
||
) |
Create a new Client.
Creates a new Client with the given connection information.
host | The host of the remote connection (defaults to localhost). |
port | The host port of the remote connection (defaults to port 80). |
Definition at line 17 of file Client.cpp.
const string & Client::getHost | ( | ) | const |
Host value accessor.
Get the host value of this Client.
Definition at line 22 of file Client.cpp.
uint16_t Client::getPort | ( | ) | const |
Port value accessor.
Get the port value of this Client.
Definition at line 27 of file Client.cpp.
const unsigned int rail::spatial_temporal_learning::worldlib::remote::Client::DEFAULT_PORT = 80 [static] |
The default client port.
Reimplemented in rail::spatial_temporal_learning::worldlib::remote::HttpClient, and rail::spatial_temporal_learning::worldlib::remote::SqlClient.
const std::string rail::spatial_temporal_learning::worldlib::remote::Client::host_ [private] |
uint16_t rail::spatial_temporal_learning::worldlib::remote::Client::port_ [private] |