blob: cd66b4af3f90eaa1107f046d0eae614ed1a90178 [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
11const FaceId INTERNAL_FACE_FACEID = 0;
12
13InternalFace::InternalFace()
14 : Face(INTERNAL_FACE_FACEID)
15{
16
17}
18
19void
20InternalFace::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
32void
33InternalFace::sendData(const Data& data)
34{
35
36}
37
38void
39InternalFace::setInterestFilter(const Name& filter,
40 OnInterest onInterest)
41{
42
43}
44
45void
46InternalFace::put(const Data& data)
47{
48 onReceiveData(data);
49}
50
51InternalFace::~InternalFace()
52{
53
54}
55
56} // namespace nfd