33 std::tuple<shared_ptr<Face>, shared_ptr<ndn::Face>>
39 auto face = make_shared<Face>(make_unique<GenericLinkService>(serviceOpts),
40 make_unique<InternalForwarderTransport>());
43 auto clientTransport = make_shared<InternalClientTransport>();
44 clientTransport->connectToForwarder(forwarderTransport);
46 auto clientFace = make_shared<ndn::Face>(clientTransport,
getGlobalIoService(), clientKeyChain);
48 return {face, clientFace};
Implements a forwarder-side transport that can be paired with another transport.
std::tuple< shared_ptr< Face >, shared_ptr< ndn::Face > > makeInternalFace(ndn::KeyChain &clientKeyChain)
Make a pair of forwarder-side face and client-side face that are connected to each other.
boost::asio::io_context & getGlobalIoService()
Returns the global io_context instance for the calling thread.
Options that control the behavior of GenericLinkService.
bool allowLocalFields
Enables encoding of IncomingFaceId, and decoding of NextHopFaceId and CachePolicy.