From 1c23af13954a151ec56ca3b0372f369db160b80a Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Mon, 2 Dec 2019 16:32:33 +0100 Subject: [HICN-426] Add isRunning API to consumer and producer socket. Change-Id: I5a144f804b87c3575f24c57ba5086136ec02efcd Signed-off-by: Mauro Sardara --- libtransport/src/hicn/transport/interfaces/socket_consumer.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libtransport/src/hicn/transport/interfaces/socket_consumer.h') diff --git a/libtransport/src/hicn/transport/interfaces/socket_consumer.h b/libtransport/src/hicn/transport/interfaces/socket_consumer.h index eceee2d34..0f83fd38f 100644 --- a/libtransport/src/hicn/transport/interfaces/socket_consumer.h +++ b/libtransport/src/hicn/transport/interfaces/socket_consumer.h @@ -158,6 +158,11 @@ class ConsumerSocket : public BaseSocket { */ void connect() override; + /** + * @brief Check whether consumer socket is active or not. + */ + bool isRunning() override { return transport_protocol_->isRunning(); } + /** * Retrieve a content using the protocol specified in the constructor. * This function blocks until the whole content is downloaded. -- cgit 1.2.3-korg