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 | |
Steve DiBenedetto | 5b43398 | 2014-01-29 17:14:27 -0700 | [diff] [blame] | 11 | InternalFace::InternalFace() |
Steve DiBenedetto | 5b43398 | 2014-01-29 17:14:27 -0700 | [diff] [blame] | 12 | { |
| 13 | |
| 14 | } |
| 15 | |
| 16 | void |
| 17 | InternalFace::sendInterest(const Interest& interest) |
| 18 | { |
| 19 | static const Name prefixRegPrefix("/localhost/nfd/prefixreg"); |
| 20 | const Name& interestName = interest.getName(); |
| 21 | |
| 22 | if (prefixRegPrefix.isPrefixOf(interestName)) |
| 23 | { |
| 24 | //invoke FibManager |
| 25 | } |
| 26 | //Drop Interest |
| 27 | } |
| 28 | |
| 29 | void |
| 30 | InternalFace::sendData(const Data& data) |
| 31 | { |
| 32 | |
| 33 | } |
| 34 | |
| 35 | void |
| 36 | InternalFace::setInterestFilter(const Name& filter, |
| 37 | OnInterest onInterest) |
| 38 | { |
| 39 | |
| 40 | } |
| 41 | |
| 42 | void |
| 43 | InternalFace::put(const Data& data) |
| 44 | { |
| 45 | onReceiveData(data); |
| 46 | } |
| 47 | |
| 48 | InternalFace::~InternalFace() |
| 49 | { |
| 50 | |
| 51 | } |
| 52 | |
| 53 | } // namespace nfd |