|
NetCpp
v0.2
|
Address for IPv4 TCP communications. More...
#include <tcp_ip4.hpp>

Public Member Functions | |
| address (const std::string &addr, int port) | |
| Constructor. | |
| std::string | getAddress () const |
| Get the address. | |
| int | getPort () const |
| Get the port number. | |
Private Attributes | |
| std::string | address_ |
| IP address. | |
| int | port_ |
| Port number. | |
Address for IPv4 TCP communications.
Definition at line 43 of file tcp_ip4.hpp.
|
inline |
Constructor.
| addr | std::string containing the address (e.g., "127.0.0.1") |
| port | Integer containing the port number (e.g., 1234) |
Definition at line 51 of file tcp_ip4.hpp.
|
inlinevirtual |
Get the address.
Implements Address.
Definition at line 60 of file tcp_ip4.hpp.
|
inline |
Get the port number.
Definition at line 69 of file tcp_ip4.hpp.
|
private |
IP address.
Definition at line 75 of file tcp_ip4.hpp.
|
private |
Port number.
Definition at line 78 of file tcp_ip4.hpp.