Shock Jiang | 698e6ed | 2014-11-09 11:22:24 -0800 | [diff] [blame] | 1 | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
Davide Pesavento | 948c50c | 2020-12-26 21:30:45 -0500 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2014-2020, Regents of the University of California. |
Shock Jiang | 698e6ed | 2014-11-09 11:22:24 -0800 | [diff] [blame] | 4 | * |
| 5 | * This file is part of NDNS (Named Data Networking Domain Name Service). |
| 6 | * See AUTHORS.md for complete list of NDNS authors and contributors. |
| 7 | * |
| 8 | * NDNS 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. |
| 11 | * |
| 12 | * NDNS 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. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License along with |
| 17 | * NDNS, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 20 | #include "query-controller.hpp" |
Shock Jiang | 698e6ed | 2014-11-09 11:22:24 -0800 | [diff] [blame] | 21 | |
| 22 | namespace ndn { |
| 23 | namespace ndns { |
| 24 | |
| 25 | QueryController::QueryController(const Name& dstLabel, const name::Component& rrType, |
| 26 | const time::milliseconds& interestLifetime, |
| 27 | const QuerySucceedCallback& onSucceed, const QueryFailCallback& onFail, |
| 28 | Face& face) |
| 29 | : m_dstLabel(dstLabel) |
| 30 | , m_rrType(rrType) |
| 31 | , m_interestLifetime(interestLifetime) |
| 32 | , m_onSucceed(onSucceed) |
| 33 | , m_onFail(onFail) |
| 34 | , m_face(face) |
| 35 | { |
| 36 | } |
| 37 | |
| 38 | std::ostream& |
| 39 | operator<<(std::ostream& os, const QueryController& ctr) |
| 40 | { |
| 41 | os << "QueryController: dstLabel=" << ctr.getDstLabel() |
| 42 | << " rrType=" << ctr.getRrType() |
| 43 | ; |
| 44 | |
| 45 | return os; |
| 46 | } |
Davide Pesavento | 948c50c | 2020-12-26 21:30:45 -0500 | [diff] [blame] | 47 | |
Shock Jiang | 698e6ed | 2014-11-09 11:22:24 -0800 | [diff] [blame] | 48 | } // namespace ndns |
| 49 | } // namespace ndn |