blob: f5ce755bb242cac241b841ce96fa69deb8602e41 [file] [log] [blame]
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
/**
* Copyright (C) 2013 Regents of the University of California.
* @author: Jeff Thompson <jefft0@remap.ucla.edu>
* See COPYING for copyright and distribution information.
*/
#include <ndn-cpp/face.hpp>
using namespace std;
namespace ndn {
uint64_t
Face::expressInterest
(const Name& name, const Interest *interestTemplate, const OnData& onData, const OnTimeout& onTimeout,
WireFormat& wireFormat)
{
if (interestTemplate)
return node_.expressInterest(Interest
(name, interestTemplate->getMinSuffixComponents(), interestTemplate->getMaxSuffixComponents(),
interestTemplate->getPublisherPublicKeyDigest(), interestTemplate->getExclude(),
interestTemplate->getChildSelector(), interestTemplate->getAnswerOriginKind(),
interestTemplate->getScope(), interestTemplate->getInterestLifetimeMilliseconds()), onData, onTimeout, wireFormat);
else
return node_.expressInterest(Interest(name, 4000.0), onData, onTimeout, wireFormat);
}
void
Face::shutdown()
{
node_.shutdown();
}
}