blob: e3daeca644cda2d7b5a3db6f093d1bb77a861047 [file] [log] [blame]
Steve DiBenedetto5b433982014-01-29 17:14:27 -07001/* -*- 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
9namespace nfd {
10
Steve DiBenedetto5b433982014-01-29 17:14:27 -070011InternalFace::InternalFace()
Steve DiBenedetto5b433982014-01-29 17:14:27 -070012{
13
14}
15
16void
17InternalFace::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
29void
30InternalFace::sendData(const Data& data)
31{
32
33}
34
35void
36InternalFace::setInterestFilter(const Name& filter,
37 OnInterest onInterest)
38{
39
40}
41
42void
43InternalFace::put(const Data& data)
44{
45 onReceiveData(data);
46}
47
48InternalFace::~InternalFace()
49{
50
51}
52
53} // namespace nfd