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/IceCandidateType.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace rtc { class SocketAddress; }
11// clang-format on
12
13namespace cricket {
14
15class Candidate {
16public:
17 // member variables
18 // NOLINTBEGIN
39 // NOLINTEND
40
41public:
42 // member functions
43 // NOLINTBEGIN
44 MCNAPI Candidate();
45
47
48 MCNAPI Candidate(
49 int component,
50 ::std::string_view protocol,
51 ::rtc::SocketAddress const& address,
52 uint priority,
53 ::std::string_view username,
54 ::std::string_view password,
55 ::webrtc::IceCandidateType type,
56 uint generation,
57 ::std::string_view foundation,
58 ushort network_id,
59 ushort network_cost
60 );
61
62 MCNAPI void ComputeFoundation(::rtc::SocketAddress const& base_address, uint64 tie_breaker);
63
65
66 MCNAPI uint GetPriority(
67 uint type_preference,
68 int network_adapter_preference,
69 int relay_preference,
70 bool adjust_local_preference
71 ) const;
72
73 MCNAPI bool IsEquivalent(::cricket::Candidate const& c) const;
74
75 MCNAPI bool MatchesForRemoval(::cricket::Candidate const& c) const;
76
77 MCNAPI ::cricket::Candidate ToSanitizedCopy(bool use_hostname_address, bool filter_related_address) const;
78
79 MCNAPI ::std::string ToStringInternal(bool sensitive) const;
80
81 MCNAPI void generate_id();
82
83 MCNAPI bool is_local() const;
84
85 MCNAPI bool is_prflx() const;
86
87 MCNAPI bool is_relay() const;
88
89 MCNAPI bool is_stun() const;
90
91 MCNAPI bool operator!=(::cricket::Candidate const& o) const;
92
93 MCNAPI ::cricket::Candidate& operator=(::cricket::Candidate const&);
94
95 MCNAPI bool operator==(::cricket::Candidate const& o) const;
96
97 MCNAPI void set_password(::std::string_view password);
98
99 MCNAPI void set_username(::std::string_view username);
100
101 MCNAPI ::std::string_view type_name() const;
102
103 MCNAPI ~Candidate();
104 // NOLINTEND
105
106public:
107 // static functions
108 // NOLINTBEGIN
109 MCNAPI static void Assign(::std::string& s, ::std::string_view view);
110 // NOLINTEND
111
112public:
113 // constructor thunks
114 // NOLINTBEGIN
115 MCNAPI void* $ctor();
116
117 MCNAPI void* $ctor(::cricket::Candidate const&);
118
119 MCNAPI void* $ctor(
120 int component,
121 ::std::string_view protocol,
122 ::rtc::SocketAddress const& address,
123 uint priority,
124 ::std::string_view username,
125 ::std::string_view password,
126 ::webrtc::IceCandidateType type,
127 uint generation,
128 ::std::string_view foundation,
129 ushort network_id,
130 ushort network_cost
131 );
132 // NOLINTEND
133
134public:
135 // destructor thunk
136 // NOLINTBEGIN
137 MCNAPI void $dtor();
138 // NOLINTEND
139};
140
141} // namespace cricket
Definition Candidate.h:15
MCAPI void ComputeFoundation(::rtc::SocketAddress const &base_address, uint64 tie_breaker)
MCAPI void set_username(::std::string_view username)
MCAPI void set_password(::std::string_view password)
MCAPI bool MatchesForRemoval(::cricket::Candidate const &c) const
MCAPI bool is_prflx() const
MCAPI bool operator==(::cricket::Candidate const &o) const
MCAPI Candidate(int component, ::std::string_view protocol, ::rtc::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 Candidate(::cricket::Candidate const &)
MCAPI bool operator!=(::cricket::Candidate const &o) const
MCAPI bool is_local() const
MCAPI void generate_id()
MCAPI::std::string_view type_name() const
MCAPI bool is_relay() const
MCAPI void $dtor()
MCAPI bool is_stun() const
MCAPI void ComputePrflxFoundation()
MCAPI uint GetPriority(uint type_preference, int network_adapter_preference, int relay_preference, bool adjust_local_preference) const
MCAPI bool IsEquivalent(::cricket::Candidate const &c) const
MCAPI::cricket::Candidate ToSanitizedCopy(bool use_hostname_address, bool filter_related_address) const
MCAPI void * $ctor(int component, ::std::string_view protocol, ::rtc::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::cricket::Candidate & operator=(::cricket::Candidate const &)
MCAPI void * $ctor()
MCAPI::std::string ToStringInternal(bool sensitive) const
static MCAPI void Assign(::std::string &s, ::std::string_view view)
MCAPI void * $ctor(::cricket::Candidate const &)
Definition SocketAddress.h:12
Definition Alias.h:14