ndn::DummyClientFaceOptions Struct Reference

Options for DummyClientFace. More...

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

Public Member Functions

 DummyClientFaceOptions ()=default
 
 DummyClientFaceOptions (bool enablePacketLogging, bool enableRegistrationReply, const std::function< void(time::milliseconds)> &processEventsOverride=nullptr)
 

Public Attributes

bool enablePacketLogging = true
 If true, packets sent out of DummyClientFace will be appended to a container. More...
 
bool enableRegistrationReply = false
 If true, prefix registration commands will be automatically replied to 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 34 of file dummy-client-face.hpp.

Constructor & Destructor Documentation

◆ DummyClientFaceOptions() [1/2]

ndn::DummyClientFaceOptions::DummyClientFaceOptions ( )
default

◆ DummyClientFaceOptions() [2/2]

ndn::DummyClientFaceOptions::DummyClientFaceOptions ( bool  enablePacketLogging,
bool  enableRegistrationReply,
const std::function< void(time::milliseconds)> &  processEventsOverride = nullptr 
)
inline

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

Member Data Documentation

◆ enablePacketLogging

bool ndn::DummyClientFaceOptions::enablePacketLogging = true

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

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

◆ enableRegistrationReply

bool ndn::DummyClientFaceOptions::enableRegistrationReply = false

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

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

◆ processEventsOverride

std::function<void(time::milliseconds)> ndn::DummyClientFaceOptions::processEventsOverride

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

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

◆ registrationReplyFaceId

uint64_t ndn::DummyClientFaceOptions::registrationReplyFaceId = 1

FaceId used in prefix registration replies.

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