aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/hicn/transport/core/connector.h
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-04-16 18:38:07 +0200
committerMauro Sardara <msardara@cisco.com>2019-04-18 16:56:04 +0000
commitb375370d0f11163da8cb752c4a3f992a89ef80ee (patch)
treeb34e8d92fb616261209a09b89e3538ea94b4c3c3 /libtransport/src/hicn/transport/core/connector.h
parent564dfea33b993c3ff6572894ef35f91ba37d23ed (diff)
[HICN-178] Sync send of control messages.v19.04
Change-Id: I9a07c6c806ceba10f80a5f67337dce2eee76120d Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'libtransport/src/hicn/transport/core/connector.h')
-rw-r--r--libtransport/src/hicn/transport/core/connector.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libtransport/src/hicn/transport/core/connector.h b/libtransport/src/hicn/transport/core/connector.h
index c790f2b..f2bbe5d 100644
--- a/libtransport/src/hicn/transport/core/connector.h
+++ b/libtransport/src/hicn/transport/core/connector.h
@@ -64,10 +64,10 @@ class Connector {
virtual void close() = 0;
- virtual void enableBurst() = 0;
-
virtual ConnectorState state() { return state_; };
+ virtual bool isConnected() { return state_ == ConnectorState::CONNECTED; }
+
protected:
void increasePoolSize(std::size_t size = packet_pool_size);