Steve DiBenedetto | 5b43398 | 2014-01-29 17:14:27 -0700 | [diff] [blame^] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
| 2 | /** |
| 3 | * Copyright (C) 2014 Named Data Networking Project |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #include "internal-face.hpp" |
| 8 | |
| 9 | namespace nfd { |
| 10 | |
| 11 | const FaceId INTERNAL_FACE_FACEID = 0; |
| 12 | |
| 13 | InternalFace::InternalFace() |
| 14 | : Face(INTERNAL_FACE_FACEID) |
| 15 | { |
| 16 | |
| 17 | } |
| 18 | |
| 19 | void |
| 20 | InternalFace::sendInterest(const Interest& interest) |
| 21 | { |
| 22 | static const Name prefixRegPrefix("/localhost/nfd/prefixreg"); |
| 23 | const Name& interestName = interest.getName(); |
| 24 | |
| 25 | if (prefixRegPrefix.isPrefixOf(interestName)) |
| 26 | { |
| 27 | //invoke FibManager |
| 28 | } |
| 29 | //Drop Interest |
| 30 | } |
| 31 | |
| 32 | void |
| 33 | InternalFace::sendData(const Data& data) |
| 34 | { |
| 35 | |
| 36 | } |
| 37 | |
| 38 | void |
| 39 | InternalFace::setInterestFilter(const Name& filter, |
| 40 | OnInterest onInterest) |
| 41 | { |
| 42 | |
| 43 | } |
| 44 | |
| 45 | void |
| 46 | InternalFace::put(const Data& data) |
| 47 | { |
| 48 | onReceiveData(data); |
| 49 | } |
| 50 | |
| 51 | InternalFace::~InternalFace() |
| 52 | { |
| 53 | |
| 54 | } |
| 55 | |
| 56 | } // namespace nfd |