blob: 93853585a2a5cab55db4246a6e6a4acf1db7a2bd [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 "face.hpp"
using namespace std;
namespace ndn {
const PendingInterestId*
Face::expressInterest
(const Name& name, const Interest *interestTemplate, const OnData& onData, const OnTimeout& onTimeout)
{
if (interestTemplate)
return node_.expressInterest(Interest
(name,
interestTemplate->getMinSuffixComponents(), interestTemplate->getMaxSuffixComponents(),
interestTemplate->getExclude(),
interestTemplate->getChildSelector(),
interestTemplate->getMustBeFresh(),
interestTemplate->getScope(),
interestTemplate->getInterestLifetime()),
onData, onTimeout);
else
return node_.expressInterest(Interest(name, 4000.0), onData, onTimeout);
}
void
Face::shutdown()
{
node_.shutdown();
}
}