NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
ns3::ndn::NetDeviceLinkService Class Reference

Implementation of layer-2 (Ethernet) LinkService (current hack, to be changed eventually) More...

#include <ndn-net-device-link-service.hpp>

Inheritance diagram for ns3::ndn::NetDeviceLinkService:
Collaboration diagram for ns3::ndn::NetDeviceLinkService:

Public Member Functions

 NetDeviceLinkService (Ptr< Node > node, const Ptr< NetDevice > &netDevice)
 Constructor. More...
 
virtual ~NetDeviceLinkService ()
 
Ptr< Node > GetNode () const
 Get Node associated with the LinkService. More...
 
Ptr< NetDevice > GetNetDevice () const
 Get NetDevice associated with the LinkService. More...
 
- Public Member Functions inherited from nfd::face::LinkService
 LinkService ()
 
virtual ~LinkService ()
 
void setFaceAndTransport (Face &face, Transport &transport)
 set Face and Transport for LinkService More...
 
const Face * getFace () const
 
const TransportgetTransport () const
 
TransportgetTransport ()
 
virtual const CountersgetCounters () const
 
void sendInterest (const Interest &interest)
 send Interest More...
 
void sendData (const Data &data)
 send Data More...
 
void sendNack (const ndn::lp::Nack &nack)
 send Nack More...
 
void receivePacket (Transport::Packet &&packet)
 performs LinkService specific operations to receive a lower-layer packet More...
 

Additional Inherited Members

- Public Types inherited from nfd::face::LinkService
typedef LinkServiceCounters Counters
 counters provided by LinkService More...
 
- Public Attributes inherited from nfd::face::LinkService
signal::Signal< LinkService, InterestafterReceiveInterest
 signals on Interest received More...
 
signal::Signal< LinkService, DataafterReceiveData
 signals on Data received More...
 
signal::Signal< LinkService, lp::NackafterReceiveNack
 signals on Nack received More...
 
signal::Signal< LinkService, InterestafterSendInterest
 signals on Interest sent More...
 
signal::Signal< LinkService, DataafterSendData
 signals on Data sent More...
 
signal::Signal< LinkService, lp::NackafterSendNack
 signals on Nack sent More...
 
- Protected Member Functions inherited from nfd::face::LinkService
void receiveInterest (const Interest &interest)
 delivers received Interest to forwarding More...
 
void receiveData (const Data &data)
 delivers received Data to forwarding More...
 
void receiveNack (const lp::Nack &nack)
 delivers received Nack to forwarding More...
 
void sendPacket (Transport::Packet &&packet)
 sends a lower-layer packet via Transport More...
 
- Protected Attributes inherited from nfd::face::LinkServiceCounters
PacketCounter nInInterests
 count of incoming Interests More...
 
PacketCounter nOutInterests
 count of outgoing Interests More...
 
PacketCounter nInData
 count of incoming Data More...
 
PacketCounter nOutData
 count of outgoing Data More...
 
PacketCounter nInNacks
 count of incoming Nacks More...
 
PacketCounter nOutNacks
 count of outgoing Nacks More...
 

Detailed Description

Implementation of layer-2 (Ethernet) LinkService (current hack, to be changed eventually)

NetDeviceLinkService is permanently associated with one NetDevice object and this object cannot be changed for the lifetime of the face

See also
AppLinkService

Definition at line 41 of file ndn-net-device-link-service.hpp.

Constructor & Destructor Documentation

§ NetDeviceLinkService()

ns3::ndn::NetDeviceLinkService::NetDeviceLinkService ( Ptr< Node >  node,
const Ptr< NetDevice > &  netDevice 
)

Constructor.

Parameters
nodeNode associated with the face
netDevicea smart pointer to NetDevice object to which this NetDeviceLinkService will be associate

Definition at line 42 of file ndn-net-device-link-service.cpp.

References ns3::ndn::L3Protocol::ETHERNET_FRAME_TYPE.

§ ~NetDeviceLinkService()

ns3::ndn::NetDeviceLinkService::~NetDeviceLinkService ( )
virtual

Definition at line 55 of file ndn-net-device-link-service.cpp.

Member Function Documentation

§ GetNode()

Ptr< Node > ns3::ndn::NetDeviceLinkService::GetNode ( ) const

Get Node associated with the LinkService.

Definition at line 61 of file ndn-net-device-link-service.cpp.

§ GetNetDevice()


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