LeviLamina
Loading...
Searching...
No Matches
ReceivedIpPacket.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/ArrayView.h"
7#include "mc/external/webrtc/EcnMarking.h"
8
9// auto generated forward declare list
10// clang-format off
11namespace webrtc { class SocketAddress; }
12namespace webrtc { class Timestamp; }
13// clang-format on
14
15namespace webrtc {
16
17class ReceivedIpPacket {
18public:
19 // ReceivedIpPacket inner types define
20 enum class DecryptionInfo : int {
21 KNotDecrypted = 0,
22 KDtlsDecrypted = 1,
23 KSrtpEncrypted = 2,
24 };
25
26public:
27 // member variables
28 // NOLINTBEGIN
34 // NOLINTEND
35
36public:
37 // prevent constructor by default
38 ReceivedIpPacket& operator=(ReceivedIpPacket const&);
39 ReceivedIpPacket(ReceivedIpPacket const&);
40 ReceivedIpPacket();
41
42public:
43 // member functions
44 // NOLINTBEGIN
45 MCNAPI ::webrtc::ReceivedIpPacket CopyAndSet(::webrtc::ReceivedIpPacket::DecryptionInfo decryption_info) const;
46
49 ::webrtc::SocketAddress const& source_address,
50 ::std::optional<::webrtc::Timestamp> arrival_time,
51 ::webrtc::EcnMarking ecn,
52 ::webrtc::ReceivedIpPacket::DecryptionInfo decryption
53 );
54 // NOLINTEND
55
56public:
57 // static functions
58 // NOLINTBEGIN
59 MCNAPI static ::webrtc::ReceivedIpPacket CreateFromLegacy(
60 uchar const* data,
61 uint64 size,
62 int64 packet_time_us,
63 ::webrtc::SocketAddress const& source_address
64 );
65 // NOLINTEND
66
67public:
68 // constructor thunks
69 // NOLINTBEGIN
70 MCNAPI void* $ctor(
72 ::webrtc::SocketAddress const& source_address,
73 ::std::optional<::webrtc::Timestamp> arrival_time,
74 ::webrtc::EcnMarking ecn,
75 ::webrtc::ReceivedIpPacket::DecryptionInfo decryption
76 );
77 // NOLINTEND
78};
79
80} // namespace webrtc
Definition ArrayView.h:8
MCAPI::webrtc::ReceivedIpPacket CopyAndSet(::webrtc::ReceivedIpPacket::DecryptionInfo decryption_info) const
MCAPI void * $ctor(::webrtc::ArrayView< uchar const > payload, ::webrtc::SocketAddress const &source_address, ::std::optional<::webrtc::Timestamp > arrival_time, ::webrtc::EcnMarking ecn, ::webrtc::ReceivedIpPacket::DecryptionInfo decryption)
MCAPI ReceivedIpPacket(::webrtc::ArrayView< uchar const > payload, ::webrtc::SocketAddress const &source_address, ::std::optional<::webrtc::Timestamp > arrival_time, ::webrtc::EcnMarking ecn, ::webrtc::ReceivedIpPacket::DecryptionInfo decryption)
static MCAPI ::webrtc::ReceivedIpPacket CreateFromLegacy(uchar const *data, uint64 size, int64 packet_time_us, ::webrtc::SocketAddress const &source_address)
Definition SocketAddress.h:15
Definition Timestamp.h:15
Definition Alias.h:14