NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
nfd::face::Channel Class Referenceabstract

Represents a channel that listens on a local endpoint. More...

#include <channel.hpp>

Inheritance diagram for nfd::face::Channel:
Collaboration diagram for nfd::face::Channel:

Public Member Functions

virtual ~Channel ()
 
const FaceUrigetUri () const
 
size_t getDefaultMtu () const
 Returns the default MTU for all faces created by this channel. More...
 
virtual bool isListening () const =0
 Returns whether the channel is listening. More...
 
virtual size_t size () const =0
 Returns the number of faces in the channel. More...
 

Protected Member Functions

void setUri (const FaceUri &uri)
 
void setDefaultMtu (size_t mtu)
 

Detailed Description

Represents a channel that listens on a local endpoint.

See also
FaceSystem

A channel can listen on a local endpoint and initiate outgoing connection from a local endpoint. A channel creates Face objects and retains shared ownership of them.

Definition at line 41 of file channel.hpp.

Constructor & Destructor Documentation

◆ ~Channel()

nfd::face::Channel::~Channel ( )
virtualdefault

Member Function Documentation

◆ getUri()

const FaceUri& nfd::face::Channel::getUri ( ) const
inline

Definition at line 48 of file channel.hpp.

◆ getDefaultMtu()

size_t nfd::face::Channel::getDefaultMtu ( ) const
inline

Returns the default MTU for all faces created by this channel.

Definition at line 56 of file channel.hpp.

References isListening(), ndn::MAX_NDN_PACKET_SIZE, setDefaultMtu(), setUri(), and size().

Referenced by nfd::face::UdpChannel::listen().

◆ isListening()

virtual bool nfd::face::Channel::isListening ( ) const
pure virtual

◆ size()

virtual size_t nfd::face::Channel::size ( ) const
pure virtual

◆ setUri()

◆ setDefaultMtu()

void nfd::face::Channel::setDefaultMtu ( size_t  mtu)
protected

Definition at line 41 of file channel.cpp.

Referenced by getDefaultMtu(), and nfd::face::UdpChannel::UdpChannel().


The documentation for this class was generated from the following files: