NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
lp-fragmenter.hpp
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
26
#ifndef NFD_DAEMON_FACE_LP_FRAGMENTER_HPP
27
#define NFD_DAEMON_FACE_LP_FRAGMENTER_HPP
28
29
#include "
face-log.hpp
"
30
31
#include <ndn-cxx/lp/packet.hpp>
32
33
namespace
nfd
{
34
namespace
face
{
35
36
class
LinkService
;
37
41
class
LpFragmenter
42
{
43
public
:
46
class
Options
47
{
48
public
:
49
Options
();
50
51
public
:
54
size_t
nMaxFragments
;
55
};
56
57
explicit
58
LpFragmenter
(
const
Options
& options =
Options
(),
const
LinkService
* linkService =
nullptr
);
59
62
void
63
setOptions
(
const
Options
& options);
64
69
const
LinkService
*
70
getLinkService
()
const
;
71
78
std::tuple<bool, std::vector<lp::Packet>>
79
fragmentPacket
(
const
lp::Packet
& packet,
size_t
mtu);
80
81
private
:
82
Options
m_options;
83
const
LinkService
* m_linkService;
84
};
85
86
std::ostream&
87
operator<<(std::ostream& os, const FaceLogHelper<LpFragmenter>& flh);
88
89
}
// namespace face
90
}
// namespace nfd
91
92
#endif // NFD_DAEMON_FACE_LP_FRAGMENTER_HPP
nfd::face::LinkService
the upper part of a Face
Definition:
link-service.hpp:77
nfd::face::LinkService
LinkService
Definition:
link-service.cpp:32
face-log.hpp
nfd::face::LpFragmenter::Options
Options that control the behavior of LpFragmenter.
Definition:
lp-fragmenter.hpp:46
nfd::face::LpFragmenter::setOptions
void setOptions(const Options &options)
set options for fragmenter
Definition:
lp-fragmenter.cpp:71
nfd::face::LpFragmenter::Options::nMaxFragments
size_t nMaxFragments
maximum number of fragments in a packet
Definition:
lp-fragmenter.hpp:54
nfd
Copyright (c) 2011-2015 Regents of the University of California.
Definition:
ndn-common.hpp:40
face
nfd::face::LpFragmenter::LpFragmenter
LpFragmenter(const Options &options=Options(), const LinkService *linkService=nullptr)
Definition:
lp-fragmenter.cpp:64
nfd::face::LpFragmenter::fragmentPacket
std::tuple< bool, std::vector< lp::Packet > > fragmentPacket(const lp::Packet &packet, size_t mtu)
fragments a network-layer packet into link-layer packets
Definition:
lp-fragmenter.cpp:83
ndn::lp::Packet
Definition:
packet.hpp:30
nfd::face::LpFragmenter::Options::Options
Options()
Definition:
lp-fragmenter.cpp:59
nfd::face::LpFragmenter
fragments network-layer packets into NDNLPv2 link-layer packets
Definition:
lp-fragmenter.hpp:41
nfd::face::LpFragmenter::getLinkService
const LinkService * getLinkService() const
Definition:
lp-fragmenter.cpp:77
ndnSIM
NFD
daemon
face
lp-fragmenter.hpp
Generated on Tue Aug 7 2018 16:19:17 for ndnSIM by
1.8.14