Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
data_processing_events.h
1 /*
2  * Copyright (c) 2017-2019 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #pragma once
17 
18 #include <hicn/transport/core/content_object.h>
19 #include <hicn/transport/core/interest.h>
20 
21 namespace transport {
22 namespace protocol {
23 
25  public:
26  virtual ~ContentObjectProcessingEventCallback() = default;
27  virtual void onPacketDropped(core::Interest &i, core::ContentObject &c,
28  const std::error_code &reason) = 0;
29  virtual void onReassemblyFailed(std::uint32_t missing_segment) = 0;
30 };
31 
32 } // namespace protocol
33 } // namespace transport
transport::core::ContentObject
Definition: content_object.h:29
transport::protocol::ContentObjectProcessingEventCallback
Definition: data_processing_events.h:24
transport::core::Interest
Definition: interest.h:30
transport
Definition: forwarder_config.h:32