ndn::util::DummyClientFace::Options Class Reference

Options for DummyClientFace. More...

#include <ndn-cxx/util/dummy-client-face.hpp>

Public Member Functions

 Options ()
 
 Options (bool enablePacketLogging, bool enableRegistrationReply)
 
 Options (bool enablePacketLogging, bool enableRegistrationReply, const std::function< void(time::milliseconds)> &processEventsOverride)
 

Public Attributes

bool enablePacketLogging
 If true, packets sent out of DummyClientFace will be appended to a container. More...
 
bool enableRegistrationReply
 If true, prefix registration command will be automatically replied with a successful response. More...
 
std::function< void(time::milliseconds)> processEventsOverride
 If not empty, face.processEvents() will be overridden by this function. More...
 
uint64_t registrationReplyFaceId = 1
 FaceId used in prefix registration replies. More...
 

Detailed Description

Options for DummyClientFace.

Definition at line 39 of file dummy-client-face.hpp.

Constructor & Destructor Documentation

◆ Options() [1/3]

ndn::util::DummyClientFace::Options::Options ( bool  enablePacketLogging,
bool  enableRegistrationReply,
const std::function< void(time::milliseconds)> &  processEventsOverride 
)
inline

Definition at line 42 of file dummy-client-face.hpp.

◆ Options() [2/3]

ndn::util::DummyClientFace::Options::Options ( bool  enablePacketLogging,
bool  enableRegistrationReply 
)
inline

Definition at line 50 of file dummy-client-face.hpp.

◆ Options() [3/3]

ndn::util::DummyClientFace::Options::Options ( )
inline

Definition at line 55 of file dummy-client-face.hpp.

Member Data Documentation

◆ enablePacketLogging

bool ndn::util::DummyClientFace::Options::enablePacketLogging

If true, packets sent out of DummyClientFace will be appended to a container.

Definition at line 63 of file dummy-client-face.hpp.

◆ enableRegistrationReply

bool ndn::util::DummyClientFace::Options::enableRegistrationReply

If true, prefix registration command will be automatically replied with a successful response.

Definition at line 68 of file dummy-client-face.hpp.

◆ processEventsOverride

std::function<void(time::milliseconds)> ndn::util::DummyClientFace::Options::processEventsOverride

If not empty, face.processEvents() will be overridden by this function.

Definition at line 76 of file dummy-client-face.hpp.

◆ registrationReplyFaceId

uint64_t ndn::util::DummyClientFace::Options::registrationReplyFaceId = 1

FaceId used in prefix registration replies.

Definition at line 72 of file dummy-client-face.hpp.