An AsyncTcpTransport::ConnectionInfo extends Transport::ConnectionInfo to hold the host and port info for the TCP connection.
More...
#include <async-tcp-transport.hpp>
An AsyncTcpTransport::ConnectionInfo extends Transport::ConnectionInfo to hold the host and port info for the TCP connection.
ndn::AsyncTcpTransport::ConnectionInfo::ConnectionInfo |
( |
const char * |
host, |
|
|
unsigned short |
port = 6363 |
|
) |
| |
|
inline |
Create a ConnectionInfo with the given host and port.
- Parameters
-
host | The host for the connection. |
port | The port number for the connection. If omitted, use 6363. |
const std::string& ndn::AsyncTcpTransport::ConnectionInfo::getHost |
( |
| ) |
const |
|
inline |
Get the host given to the constructor.
- Returns
- A string reference for the host.
unsigned short ndn::AsyncTcpTransport::ConnectionInfo::getPort |
( |
| ) |
const |
|
inline |
Get the port given to the constructor.
- Returns
- The port number.
The documentation for this class was generated from the following file: