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

A UdpTransport::ConnectionInfo extends Transport::ConnectionInfo to hold the host and port info for the UDP connection. More...

#include <udp-transport.hpp>

Inheritance diagram for ndn::UdpTransport::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

A UdpTransport::ConnectionInfo extends Transport::ConnectionInfo to hold the host and port info for the UDP connection.

Constructor & Destructor Documentation

ndn::UdpTransport::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::UdpTransport::ConnectionInfo::getHost ( ) const
inline

Get the host given to the constructor.

Returns
A string reference for the host.
unsigned short ndn::UdpTransport::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: