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 . | |
| TcpEndpoint (const std::string &ip, int port) | |
| Constructs a TcpEndpoint from an IP address and port number. | |
| std::string | getIp () const |
| Gets the IP address of the TcpEndpoint. | |
| int | getPort () const |
| Gets the port number of the TcpEndpoint. | |
| std::string | asString () const |
| Returns a string representation of the TcpEndpoint. | |
Represents a TCP endpoint.
1.8.3.1