blob: 81914baa742ed444ceff499861b2765b56f663b9 [file] [log] [blame]
Shock Jiang698e6ed2014-11-09 11:22:24 -08001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Davide Pesavento948c50c2020-12-26 21:30:45 -05002/*
3 * Copyright (c) 2014-2020, Regents of the University of California.
Shock Jiang698e6ed2014-11-09 11:22:24 -08004 *
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 Jiang698e6ed2014-11-09 11:22:24 -080021
22namespace ndn {
23namespace ndns {
24
25QueryController::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
38std::ostream&
39operator<<(std::ostream& os, const QueryController& ctr)
40{
41 os << "QueryController: dstLabel=" << ctr.getDstLabel()
42 << " rrType=" << ctr.getRrType()
43 ;
44
45 return os;
46}
Davide Pesavento948c50c2020-12-26 21:30:45 -050047
Shock Jiang698e6ed2014-11-09 11:22:24 -080048} // namespace ndns
49} // namespace ndn