aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/hicn/transport/core/forwarder_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'libtransport/src/hicn/transport/core/forwarder_interface.h')
-rw-r--r--libtransport/src/hicn/transport/core/forwarder_interface.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libtransport/src/hicn/transport/core/forwarder_interface.h b/libtransport/src/hicn/transport/core/forwarder_interface.h
index b4bc26d..8fefba8 100644
--- a/libtransport/src/hicn/transport/core/forwarder_interface.h
+++ b/libtransport/src/hicn/transport/core/forwarder_interface.h
@@ -101,15 +101,13 @@ class ForwarderInterface {
connector_.send(packet.acquireMemBufReference());
}
- template <typename Handler>
- TRANSPORT_ALWAYS_INLINE void send(const uint8_t *packet, std::size_t len,
- Handler &&packet_sent) {
+ TRANSPORT_ALWAYS_INLINE void send(const uint8_t *packet, std::size_t len) {
// ASIO_COMPLETION_HANDLER_CHECK(Handler, packet_sent) type_check;
counters_.tx_packets++;
counters_.tx_bytes += len;
// Perfect forwarding
- connector_.send(packet, len, std::forward<Handler &&>(packet_sent));
+ connector_.send(packet, len);
}
TRANSPORT_ALWAYS_INLINE void shutdown() { connector_.close(); }