LeviLamina
Loading...
Searching...
No Matches
Candidate.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/webrtc/AdapterType.h"
7#include "mc/external/webrtc/IceCandidateType.h"
8#include "mc/external/webrtc/SocketAddress.h"
9
10namespace webrtc {
11
12class Candidate {
13public:
14 // member variables
15 // NOLINTBEGIN
16 ::ll::TypedStorage<8, 32, ::std::string> id_;
17 ::ll::TypedStorage<4, 4, int> component_;
18 ::ll::TypedStorage<8, 32, ::std::string> protocol_;
19 ::ll::TypedStorage<8, 32, ::std::string> relay_protocol_;
20 ::ll::TypedStorage<8, 80, ::webrtc::SocketAddress> address_;
21 ::ll::TypedStorage<4, 4, uint> priority_;
22 ::ll::TypedStorage<8, 32, ::std::string> username_;
23 ::ll::TypedStorage<8, 32, ::std::string> password_;
24 ::ll::TypedStorage<4, 4, ::webrtc::IceCandidateType> type_;
25 ::ll::TypedStorage<8, 32, ::std::string> network_name_;
26 ::ll::TypedStorage<4, 4, ::webrtc::AdapterType> network_type_;
27 ::ll::TypedStorage<4, 4, ::webrtc::AdapterType> underlying_type_for_vpn_;
28 ::ll::TypedStorage<4, 4, uint> generation_;
29 ::ll::TypedStorage<8, 32, ::std::string> foundation_;
30 ::ll::TypedStorage<8, 80, ::webrtc::SocketAddress> related_address_;
31 ::ll::TypedStorage<8, 32, ::std::string> tcptype_;
32 ::ll::TypedStorage<8, 32, ::std::string> transport_name_;
33 ::ll::TypedStorage<2, 2, ushort> network_id_;
34 ::ll::TypedStorage<2, 2, ushort> network_cost_;
35 ::ll::TypedStorage<8, 32, ::std::string> url_;
36 // NOLINTEND
37
38public:
39 // member functions
40 // NOLINTBEGIN
41 MCAPI Candidate();
42
43 MCAPI Candidate(::webrtc::Candidate const&);
44
45 MCAPI Candidate(
46 int component,
47 ::std::string_view protocol,
48 ::webrtc::SocketAddress const& address,
49 uint priority,
50 ::std::string_view username,
51 ::std::string_view password,
52 ::webrtc::IceCandidateType type,
53 uint generation,
54 ::std::string_view foundation,
55 ushort network_id,
56 ushort network_cost
57 );
58
59 MCAPI void ComputeFoundation(::webrtc::SocketAddress const& base_address, uint64 tie_breaker);
60
61 MCAPI void ComputePrflxFoundation();
62
63 MCAPI uint GetPriority(
64 uint type_preference,
65 int network_adapter_preference,
66 int relay_preference,
67 bool adjust_local_preference
68 ) const;
69
70 MCAPI bool IsEquivalent(::webrtc::Candidate const& c) const;
71
72 MCAPI bool MatchesForRemoval(::webrtc::Candidate const& c) const;
73
74 MCAPI ::webrtc::Candidate
75 ToSanitizedCopy(bool use_hostname_address, bool filter_related_address, bool filter_ufrag) const;
76
77 MCAPI ::std::string ToStringInternal(bool sensitive) const;
78
79 MCAPI void generate_id();
80
81 MCAPI bool is_local() const;
82
83 MCAPI bool is_prflx() const;
84
85 MCAPI bool is_relay() const;
86
87 MCAPI bool is_stun() const;
88
89 MCAPI bool operator!=(::webrtc::Candidate const& o) const;
90
91 MCAPI ::webrtc::Candidate& operator=(::webrtc::Candidate const&);
92
93 MCAPI bool operator==(::webrtc::Candidate const& o) const;
94
95 MCAPI ::std::string_view type_name() const;
96
97 MCAPI ~Candidate();
98 // NOLINTEND
99
100public:
101 // static functions
102 // NOLINTBEGIN
103 MCFOLD static void Assign(::std::string& s, ::std::string_view view);
104 // NOLINTEND
105
106public:
107 // constructor thunks
108 // NOLINTBEGIN
109 MCAPI void* $ctor();
110
111 MCAPI void* $ctor(::webrtc::Candidate const&);
112
113 MCAPI void* $ctor(
114 int component,
115 ::std::string_view protocol,
116 ::webrtc::SocketAddress const& address,
117 uint priority,
118 ::std::string_view username,
119 ::std::string_view password,
120 ::webrtc::IceCandidateType type,
121 uint generation,
122 ::std::string_view foundation,
123 ushort network_id,
124 ushort network_cost
125 );
126 // NOLINTEND
127
128public:
129 // destructor thunk
130 // NOLINTBEGIN
131 MCAPI void $dtor();
132 // NOLINTEND
133};
134
135} // namespace webrtc
Definition Candidate.h:12
Definition SocketAddress.h:11