blob: c5325018ef24e0c7c4f0b3a120c8b7c0cea22af9 [file] [log] [blame]
Spyridon Mastorakis53e922f2014-10-17 17:29:26 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/**
Alexander Afanasyev60a7b622014-12-20 17:04:07 -08003 * Copyright (c) 2011-2015 Regents of the University of California.
Alexander Afanasyev08d984e2011-08-13 19:20:22 -07004 *
Spyridon Mastorakis53e922f2014-10-17 17:29:26 -07005 * This file is part of ndnSIM. See AUTHORS for complete list of ndnSIM authors and
6 * contributors.
Alexander Afanasyev08d984e2011-08-13 19:20:22 -07007 *
Spyridon Mastorakis53e922f2014-10-17 17:29:26 -07008 * ndnSIM is free software: you can redistribute it and/or modify it under the terms
9 * of the GNU General Public License as published by the Free Software Foundation,
10 * either version 3 of the License, or (at your option) any later version.
Alexander Afanasyev08d984e2011-08-13 19:20:22 -070011 *
Spyridon Mastorakis53e922f2014-10-17 17:29:26 -070012 * ndnSIM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
Alexander Afanasyev08d984e2011-08-13 19:20:22 -070015 *
Spyridon Mastorakis53e922f2014-10-17 17:29:26 -070016 * You should have received a copy of the GNU General Public License along with
17 * ndnSIM, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
18 **/
Alexander Afanasyev56f79ea2011-08-17 23:54:27 -070019
Spyridon Mastorakis53e922f2014-10-17 17:29:26 -070020#ifndef NDNSIM_NDN_FACE_HPP
21#define NDNSIM_NDN_FACE_HPP
Alexander Afanasyev08d984e2011-08-13 19:20:22 -070022
Alexander Afanasyev82d5ffe2014-12-30 23:55:38 -080023#include "ns3/ndnSIM/NFD/daemon/face/face.hpp"
24#include <ndn-cxx/util/face-uri.hpp>
Spyridon Mastorakise4f0d3c2014-10-29 13:20:03 -070025
Alexander Afanasyev08d984e2011-08-13 19:20:22 -070026namespace ns3 {
Alexander Afanasyev2b4c9472012-08-09 15:00:38 -070027namespace ndn {
28
Alexander Afanasyev82d5ffe2014-12-30 23:55:38 -080029using nfd::Face;
30using ::ndn::util::FaceUri;
31
32} // namespace ndn
33} // namespace ns3
34
35namespace nfd {
Alexander Afanasyev08d984e2011-08-13 19:20:22 -070036
Spyridon Mastorakise4f0d3c2014-10-29 13:20:03 -070037inline std::ostream&
38operator<<(std::ostream& os, const Face& face)
39{
Alexander Afanasyev82d5ffe2014-12-30 23:55:38 -080040 os << face.getLocalUri();
Spyridon Mastorakise4f0d3c2014-10-29 13:20:03 -070041 return os;
42}
43
Alexander Afanasyev82d5ffe2014-12-30 23:55:38 -080044} // namespace nfd
Alexander Afanasyev08d984e2011-08-13 19:20:22 -070045
Spyridon Mastorakis53e922f2014-10-17 17:29:26 -070046#endif // NDNSIM_NDN_FACE_HPP