22 #ifndef NDN_UTIL_DUMMY_CLIENT_FACE_HPP 23 #define NDN_UTIL_DUMMY_CLIENT_FACE_HPP 25 #include "../face.hpp" 27 #include "../lp/packet.hpp" 29 #define NDN_UTIL_DUMMY_FACE_KEEP_DEPRECATED 66 template<
typename Packet>
74 construct(
const Options& options);
107 #ifdef NDN_UTIL_DUMMY_FACE_KEEP_DEPRECATED 109 #endif // NDN_UTIL_DUMMY_FACE_KEEP_DEPRECATED 142 #ifdef NDN_UTIL_DUMMY_FACE_KEEP_DEPRECATED 147 shared_ptr<DummyClientFace>
154 shared_ptr<DummyClientFace>
157 #endif // NDN_UTIL_DUMMY_FACE_KEEP_DEPRECATED 162 #endif // NDN_UTIL_DUMMY_CLIENT_FACE_HPP std::vector< lp::Nack > sentNacks
NACKs sent out of this DummyClientFace.
Copyright (c) 2011-2015 Regents of the University of California.
Signal< DummyClientFace, Interest > onSendInterest
emits whenever an Interest is sent
std::vector< Interest > sentInterests
Interests sent out of this DummyClientFace.
std::vector< Data > & sentDatas
deprecated alias to sentData
bool enablePacketLogging
if true, packets sent out of DummyClientFace will be appended to a container
std::vector< Data > sentData
Data sent out of this DummyClientFace.
provides a lightweight signal / event system
represents a Network Nack
Signal< DummyClientFace, lp::Nack > onSendNack
emits whenever a NACK is sent
options for DummyClientFace
Abstraction to communicate with local or remote NDN forwarder.
shared_ptr< DummyClientFace > makeDummyClientFace(const DummyClientFace::Options &options)
Create a dummy face with internal IO service.
Signal< DummyClientFace, Data > onSendData
emits whenever a Data packet is sent
DummyClientFace(const Options &options=DummyClientFace::DEFAULT_OPTIONS)
Create a dummy face with internal IO service.
a client-side face for unit testing
static const Options DEFAULT_OPTIONS
default options
void receive(const Packet &packet)
cause the Face to receive a packet
bool enableRegistrationReply
if true, prefix registration command will be automatically replied with a successful response ...