Represents a TCP endpoint. More...
#include <TcpEndpoint.hpp>
Public Member Functions | |
TcpEndpoint (int port) | |
Constructs a TcpEndpoint from a port number. The IP address defaults to 127.0.0.1 . More... | |
TcpEndpoint (const std::string &ip, int port) | |
Constructs a TcpEndpoint from an IP address and port number. More... | |
std::string | getIp () const |
Gets the IP address of the TcpEndpoint. More... | |
int | getPort () const |
Gets the port number of the TcpEndpoint. More... | |
std::string | asString () const |
Returns a string representation of the TcpEndpoint. More... | |
Represents a TCP endpoint.
RCF::TcpEndpoint::TcpEndpoint | ( | int | port | ) |
Constructs a TcpEndpoint from a port number. The IP address defaults to 127.0.0.1 .
RCF::TcpEndpoint::TcpEndpoint | ( | const std::string & | ip, |
int | port | ||
) |
Constructs a TcpEndpoint from an IP address and port number.
std::string RCF::TcpEndpoint::getIp | ( | ) | const |
Gets the IP address of the TcpEndpoint.
int RCF::TcpEndpoint::getPort | ( | ) | const |
Gets the port number of the TcpEndpoint.
|
virtual |
Returns a string representation of the TcpEndpoint.
Implements RCF::Endpoint.