From 443f9e81c2f721898c1e7edf2940172fef6f55fe Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Thu, 27 Feb 2020 16:47:49 +0100 Subject: [HICN-539] Expose portal APIs to applications Change-Id: Icbaad69981193119714f5689faf3518d2e152e11 Signed-off-by: Mauro Sardara --- utils/src/ping_client.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'utils') diff --git a/utils/src/ping_client.cc b/utils/src/ping_client.cc index 6dea17418..67440cdc1 100644 --- a/utils/src/ping_client.cc +++ b/utils/src/ping_client.cc @@ -14,9 +14,9 @@ */ #include +#include #include - -#include +#include // Let's make the linker happy #if !TRANSPORT_LOG_EXTERN_GLOBAL_OUTPUT_LEVEL @@ -25,6 +25,7 @@ TRANSPORT_LOG_DEFINE_GLOBAL_OUTPUT_LEVEL = 0; #endif #endif +#include #include #include #include @@ -83,7 +84,7 @@ class Configuration { } }; -class Client : implementation::BasePortal::ConsumerCallback { +class Client : interface::Portal::ConsumerCallback { public: Client(Configuration *c) : portal_(), signals_(portal_.getIoService(), SIGINT) { @@ -213,6 +214,8 @@ class Client : implementation::BasePortal::ConsumerCallback { } } + void onError(std::error_code ec) override {} + void doPing() { Name interest_name(config_->name_, (uint32_t)sequence_number_); hicn_format_t format; @@ -298,7 +301,7 @@ class Client : implementation::BasePortal::ConsumerCallback { private: SendTimeMap send_timestamps_; - implementation::BasePortal portal_; + interface::Portal portal_; asio::signal_set signals_; uint64_t sequence_number_; uint64_t last_jump_; -- cgit 1.2.3-korg