Skip to content
LeviMC
English
AutoLightDark
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 MCNAPI Candidate();
42
44
45 MCNAPI 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 MCNAPI void ComputeFoundation(::webrtc::SocketAddress const& base_address, uint64 tie_breaker);
60
62
63 MCNAPI uint GetPriority(
64 uint type_preference,
65 int network_adapter_preference,
66 int relay_preference,
67 bool adjust_local_preference
68 ) const;
69
70 MCNAPI bool IsEquivalent(::webrtc::Candidate const& c) const;
71
72 MCNAPI bool MatchesForRemoval(::webrtc::Candidate const& c) const;
73
74 MCNAPI ::webrtc::Candidate
75 ToSanitizedCopy(bool use_hostname_address, bool filter_related_address, bool filter_ufrag) const;
76
77 MCNAPI ::std::string ToStringInternal(bool sensitive) const;
78
79 MCNAPI void generate_id();
80
81 MCNAPI bool is_local() const;
82
83 MCNAPI bool is_prflx() const;
84
85 MCNAPI bool is_relay() const;
86
87 MCNAPI bool is_stun() const;
88
89 MCNAPI bool operator!=(::webrtc::Candidate const& o) const;
90
91 MCNAPI ::webrtc::Candidate& operator=(::webrtc::Candidate const&);
92
93 MCNAPI bool operator==(::webrtc::Candidate const& o) const;
94
95 MCNAPI ::std::string_view type_name() const;
96
97 MCNAPI ~Candidate();
98 // NOLINTEND
99
100public:
101 // static functions
102 // NOLINTBEGIN
103 MCNAPI static void Assign(::std::string& s, ::std::string_view view);
104 // NOLINTEND
105
106public:
107 // constructor thunks
108 // NOLINTBEGIN
109 MCNAPI void* $ctor();
110
111 MCNAPI void* $ctor(::webrtc::Candidate const&);
112
113 MCNAPI 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 MCNAPI void $dtor();
132 // NOLINTEND
133};
134
135} // namespace webrtc
Definition Candidate.h:12
MCAPI void $dtor()
MCAPI::webrtc::Candidate & operator=(::webrtc::Candidate const &)
MCAPI Candidate(::webrtc::Candidate const &)
MCAPI Candidate(int component, ::std::string_view protocol, ::webrtc::SocketAddress const &address, uint priority, ::std::string_view username, ::std::string_view password, ::webrtc::IceCandidateType type, uint generation, ::std::string_view foundation, ushort network_id, ushort network_cost)
static MCAPI void Assign(::std::string &s, ::std::string_view view)
MCAPI::std::string_view type_name() const
MCAPI bool is_prflx() const
MCAPI void * $ctor(::webrtc::Candidate const &)
MCAPI bool is_stun() const
MCAPI::std::string ToStringInternal(bool sensitive) const
MCAPI bool is_local() const
MCAPI bool IsEquivalent(::webrtc::Candidate const &c) const
MCAPI bool operator!=(::webrtc::Candidate const &o) const
MCAPI void ComputePrflxFoundation()
MCAPI void * $ctor(int component, ::std::string_view protocol, ::webrtc::SocketAddress const &address, uint priority, ::std::string_view username, ::std::string_view password, ::webrtc::IceCandidateType type, uint generation, ::std::string_view foundation, ushort network_id, ushort network_cost)
MCAPI bool operator==(::webrtc::Candidate const &o) const
MCAPI void * $ctor()
MCAPI void ComputeFoundation(::webrtc::SocketAddress const &base_address, uint64 tie_breaker)
MCAPI bool MatchesForRemoval(::webrtc::Candidate const &c) const
MCAPI bool is_relay() const
MCAPI void generate_id()
MCAPI uint GetPriority(uint type_preference, int network_adapter_preference, int relay_preference, bool adjust_local_preference) const
MCAPI::webrtc::Candidate ToSanitizedCopy(bool use_hostname_address, bool filter_related_address, bool filter_ufrag) const
Definition SocketAddress.h:11