• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2021 The WebRTC project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 #ifndef NET_DCSCTP_PACKET_ERROR_CAUSE_ERROR_CAUSE_H_
11 #define NET_DCSCTP_PACKET_ERROR_CAUSE_ERROR_CAUSE_H_
12 
13 #include <stddef.h>
14 
15 #include <cstdint>
16 #include <iosfwd>
17 #include <memory>
18 #include <string>
19 #include <type_traits>
20 #include <utility>
21 #include <vector>
22 
23 #include "absl/algorithm/container.h"
24 #include "absl/strings/string_view.h"
25 #include "absl/types/optional.h"
26 #include "api/array_view.h"
27 #include "net/dcsctp/packet/parameter/parameter.h"
28 #include "net/dcsctp/packet/tlv_trait.h"
29 
30 namespace dcsctp {
31 
32 // Converts the Error Causes in `parameters` to a human readable string,
33 // to be used in error reporting and logging.
34 std::string ErrorCausesToString(const Parameters& parameters);
35 
36 }  // namespace dcsctp
37 
38 #endif  // NET_DCSCTP_PACKET_ERROR_CAUSE_ERROR_CAUSE_H_
39