From c365689250216861fd7727203ee6ba1049ad5778 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Wed, 3 Apr 2019 10:03:56 +0200 Subject: [HICN-155] Consumer socket allows now to read N bytes from the network, where N is defined by the application. Change-Id: Ib20309b40e43e4c0db09b9b484e18cd2e3ebf581 Signed-off-by: Mauro Sardara --- libtransport/src/hicn/transport/interfaces/socket_producer.cc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'libtransport/src/hicn/transport/interfaces/socket_producer.cc') diff --git a/libtransport/src/hicn/transport/interfaces/socket_producer.cc b/libtransport/src/hicn/transport/interfaces/socket_producer.cc index 3f9d4959d..c4cf95895 100644 --- a/libtransport/src/hicn/transport/interfaces/socket_producer.cc +++ b/libtransport/src/hicn/transport/interfaces/socket_producer.cc @@ -14,6 +14,7 @@ */ #include +#include #include @@ -336,16 +337,6 @@ void ProducerSocket::asyncProduce(const Name &suffix, const uint8_t *buf, } } -void ProducerSocket::asyncProduce(const Name &suffix, - ContentBuffer &&output_buffer) { - if (!async_thread_.stopped()) { - async_thread_.add( - [this, suff = suffix, buffer = std::move(output_buffer)]() { - produce(suff, &(*buffer)[0], buffer->size(), true); - }); - } -} - void ProducerSocket::onInterest(Interest &interest) { if (on_interest_input_ != VOID_HANDLER) { on_interest_input_(*this, interest); -- cgit 1.2.3-korg