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