blob: cc104f641dcaccadb301d57f1a9d418426e11da8 [file] [log] [blame]
Yanbiao Liac8b4ca2017-07-10 02:27:50 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
Davide Pesavento74daf742018-11-23 18:14:13 -05003 * Copyright (c) 2013-2018 Regents of the University of California,
Yanbiao Liac8b4ca2017-07-10 02:27:50 -07004 * Arizona Board of Regents,
5 * Colorado State University,
6 * University Pierre & Marie Curie, Sorbonne University,
7 * Washington University in St. Louis,
8 * Beijing Institute of Technology,
9 * The University of Memphis.
10 *
11 * This file is part of ndn-cxx library (NDN C++ library with eXperimental eXtensions).
12 *
13 * ndn-cxx library is free software: you can redistribute it and/or modify it under the
14 * terms of the GNU Lesser General Public License as published by the Free Software
15 * Foundation, either version 3 of the License, or (at your option) any later version.
16 *
17 * ndn-cxx library is distributed in the hope that it will be useful, but WITHOUT ANY
18 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
19 * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
20 *
21 * You should have received copies of the GNU General Public License and GNU Lesser
22 * General Public License along with ndn-cxx, e.g., in COPYING.md file. If not, see
23 * <http://www.gnu.org/licenses/>.
24 *
25 * See AUTHORS.md for complete list of ndn-cxx authors and contributors.
26 */
27
Davide Pesavento7e780642018-11-24 15:51:34 -050028#ifndef NDN_TESTS_UNIT_NET_COLLECT_NETIFS_HPP
29#define NDN_TESTS_UNIT_NET_COLLECT_NETIFS_HPP
Yanbiao Liac8b4ca2017-07-10 02:27:50 -070030
Davide Pesavento7e780642018-11-24 15:51:34 -050031#include "ndn-cxx/net/network-interface.hpp"
Yanbiao Liac8b4ca2017-07-10 02:27:50 -070032
33#include <vector>
34
35namespace ndn {
36namespace net {
37namespace tests {
38
39/** \brief Collect information about network interfaces
40 * \param allowCached if true, previously collected information can be returned
41 * \note This function is blocking if \p allowCached is false or no previous information exists
Yanbiao Liac8b4ca2017-07-10 02:27:50 -070042 */
43std::vector<shared_ptr<const NetworkInterface>>
44collectNetworkInterfaces(bool allowCached = true);
45
46} // namespace tests
47} // namespace net
48} // namespace ndn
49
Davide Pesavento7e780642018-11-24 15:51:34 -050050#endif // NDN_TESTS_UNIT_NET_COLLECT_NETIFS_HPP