NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
ndn-net-device-transport.hpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
20 #ifndef NDN_NET_DEVICE_TRANSPORT_HPP
21 #define NDN_NET_DEVICE_TRANSPORT_HPP
22 
23 #include "ns3/ndnSIM/model/ndn-common.hpp"
24 #include "ns3/ndnSIM/NFD/daemon/face/transport.hpp"
25 
26 #include "ns3/net-device.h"
27 #include "ns3/log.h"
28 #include "ns3/packet.h"
29 #include "ns3/node.h"
30 #include "ns3/pointer.h"
31 
32 #include "ns3/point-to-point-net-device.h"
33 #include "ns3/channel.h"
34 
35 namespace ns3 {
36 namespace ndn {
37 
43 {
44 public:
45  NetDeviceTransport(Ptr<Node> node, const Ptr<NetDevice>& netDevice,
46  const std::string& localUri,
47  const std::string& remoteUri,
51 
53 
54  Ptr<NetDevice>
55  GetNetDevice() const;
56 
57 private:
58  virtual void
59  beforeChangePersistency(::ndn::nfd::FacePersistency newPersistency) override;
60 
61  virtual void
62  doClose() override;
63 
64  virtual void
65  doSend(Packet&& packet) override;
66 
67  void
68  receiveFromNetDevice(Ptr<NetDevice> device,
69  Ptr<const ns3::Packet> p,
70  uint16_t protocol,
71  const Address& from, const Address& to,
72  NetDevice::PacketType packetType);
73 
74  Ptr<NetDevice> m_netDevice;
75  Ptr<Node> m_node;
76 };
77 
78 } // namespace ndn
79 } // namespace ns3
80 
81 #endif // NDN_NULL_TRANSPORT_HPP
Copyright (c) 2011-2015 Regents of the University of California.
stores a packet along with the remote endpoint
Definition: transport.hpp:113
NetDeviceTransport(Ptr< Node > node, const Ptr< NetDevice > &netDevice, const std::string &localUri, const std::string &remoteUri, ::ndn::nfd::FaceScope scope=::ndn::nfd::FACE_SCOPE_NON_LOCAL, ::ndn::nfd::FacePersistency persistency=::ndn::nfd::FACE_PERSISTENCY_PERSISTENT, ::ndn::nfd::LinkType linkType=::ndn::nfd::LINK_TYPE_POINT_TO_POINT)
Copyright (c) 2011-2015 Regents of the University of California.
the lower part of a Face
Definition: transport.hpp:104