Public Member Functions | List of all members
ndn::AsyncTcpTransport::ConnectionInfo Class Reference

An AsyncTcpTransport::ConnectionInfo extends Transport::ConnectionInfo to hold the host and port info for the TCP connection. More...

#include <async-tcp-transport.hpp>

Inheritance diagram for ndn::AsyncTcpTransport::ConnectionInfo:
ndn::Transport::ConnectionInfo

Public Member Functions

 ConnectionInfo (const char *host, unsigned short port=6363)
 Create a ConnectionInfo with the given host and port. More...
 
const std::string & getHost () const
 Get the host given to the constructor. More...
 
unsigned short getPort () const
 Get the port given to the constructor. More...
 

Detailed Description

An AsyncTcpTransport::ConnectionInfo extends Transport::ConnectionInfo to hold the host and port info for the TCP connection.

Constructor & Destructor Documentation

ndn::AsyncTcpTransport::ConnectionInfo::ConnectionInfo ( const char *  host,
unsigned short  port = 6363 
)
inline

Create a ConnectionInfo with the given host and port.

Parameters
hostThe host for the connection.
portThe port number for the connection. If omitted, use 6363.

Member Function Documentation

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: