34 std::tuple<shared_ptr<Face>, shared_ptr<ndn::Face>>
40 auto face = make_shared<Face>(make_unique<GenericLinkService>(serviceOpts),
41 make_unique<InternalForwarderTransport>());
44 auto clientTransport = make_shared<InternalClientTransport>();
45 clientTransport->connectToForwarder(forwarderTransport);
47 auto clientFace = make_shared<ndn::Face>(clientTransport,
getGlobalIoService(), clientKeyChain);
49 return std::make_tuple(face, clientFace);
Options that control the behavior of GenericLinkService.
bool allowLocalFields
enables encoding of IncomingFaceId, and decoding of NextHopFaceId and CachePolicy
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 with each other
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents,...
boost::asio::io_service & getGlobalIoService()
Returns the global io_service instance for the calling thread.