| /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| * Copyright (C) 2014 Named Data Networking Project |
| * See COPYING for copyright and distribution information. |
| #include "core/logger.hpp" |
| // this method is private and should be used only by the Forwarder |
| Face::setId(FaceId faceId) |
| // this method is protected and can be used only in derived class |
| // to set localhost scope |
| Face::setLocal(bool isLocal) |
| Face::setDescription(const std::string& description) |
| m_description = description; |
| Face::getDescription() const |
| Face::isMultiAccess() const |
| Face::decodeAndDispatchInput(const Block& element) |
| /// \todo Ensure lazy field decoding process |
| if (element.type() == tlv::Interest) |
| shared_ptr<Interest> i = make_shared<Interest>(); |
| this->onReceiveInterest(*i); |
| else if (element.type() == tlv::Data) |
| shared_ptr<Data> d = make_shared<Data>(); |