diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-02-18 10:56:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-02-18 10:56:49 +0000 |
commit | 2fd90aea1831942cda49d6635e95c86d8e494966 (patch) | |
tree | d7182493aa06976f252a0bdce34228e39ee8d050 /libtransport/src/hicn/transport/core/memif_connector.cc | |
parent | 7465d7ee3fbae80d24342930ad78682a6e674bb9 (diff) | |
parent | 79e0d4f89c4d532189aae06cc5dfbc14e3269703 (diff) |
Merge "[HICN-50] Added udp application connector."
Diffstat (limited to 'libtransport/src/hicn/transport/core/memif_connector.cc')
-rw-r--r-- | libtransport/src/hicn/transport/core/memif_connector.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libtransport/src/hicn/transport/core/memif_connector.cc b/libtransport/src/hicn/transport/core/memif_connector.cc index 38b2a2a98..c69a87fb7 100644 --- a/libtransport/src/hicn/transport/core/memif_connector.cc +++ b/libtransport/src/hicn/transport/core/memif_connector.cc @@ -57,7 +57,7 @@ MemifConnector::MemifConnector(PacketReceivedCallback &&receive_callback, OnReconnect &&on_reconnect_callback, asio::io_service &io_service, std::string app_name) - : Connector(), + : Connector(std::move(receive_callback), std::move(on_reconnect_callback)), memif_worker_(nullptr), timer_set_(false), send_timer_(std::make_unique<utils::FdDeadlineTimer>(event_reactor_)), @@ -71,8 +71,6 @@ MemifConnector::MemifConnector(PacketReceivedCallback &&receive_callback, enable_burst_(false), closed_(false), app_name_(app_name), - receive_callback_(receive_callback), - on_reconnect_callback_(on_reconnect_callback), socket_filename_("") { std::call_once(MemifConnector::flag_, &MemifConnector::init, this); } @@ -372,7 +370,6 @@ int MemifConnector::onInterrupt(memif_conn_handle_t conn, void *private_ctx, packet->append(packet_length); if (!connector->input_buffer_.push(std::move(packet))) { - TRANSPORT_LOGI("Error pushing packet. Ring buffer full."); // TODO Here we should consider the possibility to signal the congestion |