/* * Copyright (c) 2021 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef NET_DCSCTP_RX_REASSEMBLY_STREAMS_H_ #define NET_DCSCTP_RX_REASSEMBLY_STREAMS_H_ #include <stddef.h> #include <stdint.h> #include <functional> #include <vector> #include "absl/strings/string_view.h" #include "api/array_view.h" #include "net/dcsctp/common/sequence_numbers.h" #include "net/dcsctp/packet/chunk/forward_tsn_common.h" #include "net/dcsctp/packet/data.h" #include "net/dcsctp/public/dcsctp_handover_state.h" #include "net/dcsctp/public/dcsctp_message.h" namespace dcsctp { // Implementations of this interface will be called when data is received, when // data should be skipped/forgotten or when sequence number should be reset. // // As a result of these operations - mainly when data is received - the // implementations of this interface should notify when a message has been // assembled, by calling the provided callback of type `OnAssembledMessage`. How // it assembles messages will depend on e.g. if a message was sent on an ordered // or unordered stream. // // Implementations will - for each operation - indicate how much additional // memory that has been used as a result of performing the operation. This is // used to limit the maximum amount of memory used, to prevent out-of-memory // situations. class ReassemblyStreams { … }; } // namespace dcsctp #endif // NET_DCSCTP_RX_REASSEMBLY_STREAMS_H_