diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-04-03 10:03:56 +0200 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-04-15 11:37:30 +0200 |
commit | c365689250216861fd7727203ee6ba1049ad5778 (patch) | |
tree | 97f1f3d1a6cb7314f1292d97be6d8e8e06cc998b /libtransport/src/hicn/transport/protocols/reassembly.h | |
parent | d8ce6d98a2a726393655bd71eb81b8ef5222d6ba (diff) |
[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 <msardara@cisco.com>
Diffstat (limited to 'libtransport/src/hicn/transport/protocols/reassembly.h')
-rw-r--r-- | libtransport/src/hicn/transport/protocols/reassembly.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libtransport/src/hicn/transport/protocols/reassembly.h b/libtransport/src/hicn/transport/protocols/reassembly.h index 9efddb773..79f0ea4d2 100644 --- a/libtransport/src/hicn/transport/protocols/reassembly.h +++ b/libtransport/src/hicn/transport/protocols/reassembly.h @@ -20,6 +20,10 @@ namespace transport { +namespace interface { +class ConsumerReadCallback; +} + namespace protocol { // Forward Declaration @@ -54,6 +58,9 @@ class BaseReassembly : public Reassembly { virtual void reset() override; + private: + void notifyApplication(); + protected: // The consumer socket interface::ConsumerSocket *reassembly_consumer_socket_; @@ -63,6 +70,7 @@ class BaseReassembly : public Reassembly { std::unordered_map<std::uint32_t, ContentObject::Ptr> received_packets_; uint64_t index_; + std::unique_ptr<utils::MemBuf> read_buffer_; }; } // namespace protocol |