prefix-update-commands.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
23 
24 namespace nlsr {
25 namespace update {
26 
28  : ControlCommand("nlsr", "withdraw")
29 {
30  m_requestValidator.required(ndn::nfd::CONTROL_PARAMETER_NAME);
31  m_responseValidator.required(ndn::nfd::CONTROL_PARAMETER_NAME);
32 
33  m_requestValidator.optional(ndn::nfd::CONTROL_PARAMETER_FLAGS);
34  m_responseValidator.optional(ndn::nfd::CONTROL_PARAMETER_FLAGS);
35 }
36 
38  : ControlCommand("nlsr", "advertise")
39 {
40  m_requestValidator.required(ndn::nfd::CONTROL_PARAMETER_NAME);
41  m_responseValidator.required(ndn::nfd::CONTROL_PARAMETER_NAME);
42 
43  m_requestValidator.optional(ndn::nfd::CONTROL_PARAMETER_FLAGS);
44  m_responseValidator.optional(ndn::nfd::CONTROL_PARAMETER_FLAGS);
45 
46 }
47 
48 } // namespace update
49 } // namespace nlsr
Copyright (c) 2014-2017, The University of Memphis, Regents of the University of California, Arizona Board of Regents.
Copyright (c) 2014-2019, The University of Memphis, Regents of the University of California, Arizona Board of Regents.