Switch to Face::getIoContext()
Change-Id: Ice05b0b8e9af4ed4651abcf6fc4ea6b84c34da7c
This commit is contained in:
1 parent
816767b4c2
commit
7e9d7e4f9a
11 files changed
+25
-20
No files matched your search
@@ -1,6 +1,6 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* Copyright (c) 2014-2022, Arizona Board of Regents.
|
||||
* Copyright (c) 2014-2023, Arizona Board of Regents.
|
||||
*
|
||||
* This file is part of ndn-tools (Named Data Networking Essential Tools).
|
||||
* See AUTHORS.md for complete list of ndn-tools authors and contributors.
|
||||
@@ -42,8 +42,8 @@ public:
|
||||
: m_ping(m_face, options)
|
||||
, m_statisticsCollector(m_ping, options)
|
||||
, m_tracer(m_ping, options)
|
||||
, m_signalSetInt(m_face.getIoService(), SIGINT)
|
||||
, m_signalSetQuit(m_face.getIoService(), SIGQUIT)
|
||||
, m_signalSetInt(m_face.getIoContext(), SIGINT)
|
||||
, m_signalSetQuit(m_face.getIoContext(), SIGQUIT)
|
||||
{
|
||||
m_signalSetInt.async_wait([this] (const auto& err, int) { onInterruptSignal(err); });
|
||||
m_signalSetQuit.async_wait([this] (const auto& err, int) { onQuitSignal(err); });
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* Copyright (c) 2014-2022, Arizona Board of Regents.
|
||||
* Copyright (c) 2014-2023, Arizona Board of Regents.
|
||||
*
|
||||
* This file is part of ndn-tools (Named Data Networking Essential Tools).
|
||||
* See AUTHORS.md for complete list of ndn-tools authors and contributors.
|
||||
@@ -31,7 +31,7 @@ Ping::Ping(Face& face, const Options& options)
|
||||
: m_options(options)
|
||||
, m_nextSeq(options.startSeq)
|
||||
, m_face(face)
|
||||
, m_scheduler(m_face.getIoService())
|
||||
, m_scheduler(m_face.getIoContext())
|
||||
{
|
||||
if (m_options.shouldGenerateRandomSeq) {
|
||||
m_nextSeq = random::generateWord64();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
/*
|
||||
* Copyright (c) 2015-2022, Arizona Board of Regents.
|
||||
* Copyright (c) 2015-2023, Arizona Board of Regents.
|
||||
*
|
||||
* This file is part of ndn-tools (Named Data Networking Essential Tools).
|
||||
* See AUTHORS.md for complete list of ndn-tools authors and contributors.
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
: m_options(options)
|
||||
, m_pingServer(m_face, m_keyChain, options)
|
||||
, m_tracer(m_pingServer, options)
|
||||
, m_signalSet(m_face.getIoService(), SIGINT)
|
||||
, m_signalSet(m_face.getIoContext(), SIGINT)
|
||||
{
|
||||
m_pingServer.afterFinish.connect([this] {
|
||||
m_pingServer.stop();
|
||||
|
||||
Reference in new issue
Block a user