blob: 9400fb6b3206209826506518bc07d515bc483103 [file] [log] [blame]
Andrea Tosatto672b9a72016-01-05 16:18:20 +01001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Davide Pesavento44b3b232017-12-23 16:58:25 -05002/*
schneiderklaus8ff3abd2019-03-12 22:15:12 -07003 * Copyright (c) 2016-2019, Regents of the University of California,
Davide Pesavento44b3b232017-12-23 16:58:25 -05004 * Colorado State University,
5 * University Pierre & Marie Curie, Sorbonne University.
Andrea Tosatto672b9a72016-01-05 16:18:20 +01006 *
7 * This file is part of ndn-tools (Named Data Networking Essential Tools).
8 * See AUTHORS.md for complete list of ndn-tools authors and contributors.
9 *
10 * ndn-tools is free software: you can redistribute it and/or modify it under the terms
11 * of the GNU General Public License as published by the Free Software Foundation,
12 * either version 3 of the License, or (at your option) any later version.
13 *
14 * ndn-tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 * PURPOSE. See the GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along with
19 * ndn-tools, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
20 *
21 * See AUTHORS.md for complete list of ndn-cxx authors and contributors.
22 *
23 * @author Andrea Tosatto
24 * @author Davide Pesavento
25 */
26
27#ifndef NDN_TOOLS_CHUNKS_CATCHUNKS_OPTIONS_HPP
28#define NDN_TOOLS_CHUNKS_CATCHUNKS_OPTIONS_HPP
29
Davide Pesavento44b3b232017-12-23 16:58:25 -050030#include <ndn-cxx/interest.hpp>
Andrea Tosatto672b9a72016-01-05 16:18:20 +010031#include <ndn-cxx/util/time.hpp>
32
33namespace ndn {
34namespace chunks {
35
Davide Pesavento44b3b232017-12-23 16:58:25 -050036struct Options
Andrea Tosatto672b9a72016-01-05 16:18:20 +010037{
Davide Pesavento0da1f442019-07-26 17:38:13 -040038 time::milliseconds interestLifetime = DEFAULT_INTEREST_LIFETIME;
schneiderklaus8ff3abd2019-03-12 22:15:12 -070039 int maxRetriesOnTimeoutOrNack = 15;
Davide Pesavento44b3b232017-12-23 16:58:25 -050040 bool mustBeFresh = false;
Davide Pesaventof6991e12018-01-08 20:58:50 -050041 bool isQuiet = false;
Davide Pesavento44b3b232017-12-23 16:58:25 -050042 bool isVerbose = false;
Andrea Tosatto672b9a72016-01-05 16:18:20 +010043};
44
45} // namespace chunks
46} // namespace ndn
47
48#endif // NDN_TOOLS_CHUNKS_CATCHUNKS_OPTIONS_HPP