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

Namespaces

 ethernet
 
 scheduler
 
 signal
 

Classes

class  CanonizeProvider
 a CanonizeProvider provides FaceUri canonization functionality for a group of schemes More...
 
class  CanonizeProviderTableInitializer
 
class  Digest
 provides a digest calculation More...
 
class  DummyClientFace
 a client-side face for unit testing More...
 
class  EtherCanonizeProvider
 
class  FaceUri
 represents the underlying protocol and address used by a Face More...
 
class  IndentedStream
 Output to stream with specified indent or prefix. More...
 
class  InMemoryStorage
 Represents in-memory storage. More...
 
class  InMemoryStorageEntry
 Represents an in-memory storage entry. More...
 
class  InMemoryStorageFifo
 Provides in-memory storage employing FIFO replacement policy, which is first in first out. More...
 
class  InMemoryStorageLfu
 Provides an in-memory storage with Least Frequently Used (LFU) replacement policy. More...
 
class  InMemoryStorageLru
 Provides in-memory storage employing LRU replacement policy, of which the least recently used entry will be evict first. More...
 
class  InMemoryStoragePersistent
 Provides application cache with persistent storage, of which no replacement policy will be employed. More...
 
class  IpHostCanonizeProvider
 
class  NetworkMonitor
 Network state change monitor. More...
 
class  NotificationStream
 provides a publisher of Notification Stream More...
 
class  NotificationSubscriber
 provides a subscriber of Notification Stream More...
 
class  SegmentFetcher
 Utility class to fetch latest version of the segmented data. More...
 
class  Sqlite3Statement
 wrap an SQLite3 prepared statement More...
 
class  TcpCanonizeProvider
 
class  UdpCanonizeProvider
 

Typedefs

typedef Digest< CryptoPP::SHA256 > Sha256
 A digest using SHA256 as the hash function. More...
 
typedef boost::mpl::vector< UdpCanonizeProvider *, TcpCanonizeProvider *, EtherCanonizeProvider *> CanonizeProviders
 
typedef std::map< std::string, shared_ptr< CanonizeProvider > > CanonizeProviderTable
 

Functions

template<typename Hash >
std::ostream & operator<< (std::ostream &os, Digest< Hash > &digest)
 
template std::ostream & operator<< (std::ostream &os, Digest< CryptoPP::SHA256 > &digest)
 
template<>
void DummyClientFace::receive< lp::Nack > (const lp::Nack &nack)
 
shared_ptr< DummyClientFacemakeDummyClientFace (const DummyClientFace::Options &options=DummyClientFace::DEFAULT_OPTIONS)
 Create a dummy face with internal IO service. More...
 
shared_ptr< DummyClientFacemakeDummyClientFace (boost::asio::io_service &ioService, const DummyClientFace::Options &options=DummyClientFace::DEFAULT_OPTIONS)
 Create a dummy face with the provided IO service. More...
 
std::ostream & operator<< (std::ostream &os, const FaceUri &uri)
 
static const CanonizeProvidergetCanonizeProvider (const std::string &scheme)
 
static void nop ()
 

Variables

const size_t NETLINK_BUFFER_SIZE = 4096
 

Typedef Documentation

§ Sha256

typedef Digest<CryptoPP::SHA256> ndn::util::Sha256

A digest using SHA256 as the hash function.

Definition at line 211 of file digest.hpp.

§ CanonizeProviders

Definition at line 454 of file face-uri.cpp.

§ CanonizeProviderTable

typedef std::map<std::string, shared_ptr<CanonizeProvider> > ndn::util::CanonizeProviderTable

Definition at line 455 of file face-uri.cpp.

Function Documentation

§ operator<<() [1/3]

template<typename Hash >
std::ostream & ndn::util::operator<< ( std::ostream &  os,
Digest< Hash > &  digest 
)

Definition at line 160 of file digest.cpp.

References ndn::printHex().

§ operator<<() [2/3]

template std::ostream& ndn::util::operator<< ( std::ostream &  os,
Digest< CryptoPP::SHA256 > &  digest 
)

§ DummyClientFace::receive< lp::Nack >()

§ makeDummyClientFace() [1/2]

shared_ptr< DummyClientFace > ndn::util::makeDummyClientFace ( const DummyClientFace::Options options = DummyClientFace::DEFAULT_OPTIONS)

Create a dummy face with internal IO service.

Deprecated:
Use the DummyFace constructor directly

Definition at line 242 of file dummy-client-face.cpp.

References ndn::util::DummyClientFace::DummyClientFace().

§ makeDummyClientFace() [2/2]

shared_ptr< DummyClientFace > ndn::util::makeDummyClientFace ( boost::asio::io_service &  ioService,
const DummyClientFace::Options options = DummyClientFace::DEFAULT_OPTIONS 
)

Create a dummy face with the provided IO service.

Deprecated:
Use the DummyFace constructor directly

Definition at line 249 of file dummy-client-face.cpp.

References ndn::util::DummyClientFace::DummyClientFace().

§ operator<<() [3/3]

std::ostream & ndn::util::operator<< ( std::ostream &  os,
const FaceUri uri 
)

Definition at line 193 of file face-uri.cpp.

§ getCanonizeProvider()

static const CanonizeProvider* ndn::util::getCanonizeProvider ( const std::string &  scheme)
static

§ nop()

static void ndn::util::nop ( )
inlinestatic

Definition at line 518 of file face-uri.cpp.

Referenced by ndn::util::FaceUri::canonize().

Variable Documentation

§ NETLINK_BUFFER_SIZE

const size_t ndn::util::NETLINK_BUFFER_SIZE = 4096

Definition at line 32 of file network-monitor-impl-rtnl.hpp.