LeviLamina
Loading...
Searching...
No Matches
Network.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/rtc/AdapterType.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace rtc { class IPAddress; }
11namespace rtc { class InterfaceAddress; }
12namespace webrtc { class FieldTrialsView; }
13namespace webrtc { class MdnsResponderInterface; }
14// clang-format on
15
16namespace rtc {
17
18class Network {
19public:
20 // member variables
21 // NOLINTBEGIN
40 // NOLINTEND
41
42public:
43 // prevent constructor by default
44 Network& operator=(Network const&);
45 Network(Network const&);
46 Network();
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCNAPI ::rtc::IPAddress GetBestIP() const;
52
53 MCNAPI ushort GetCost(::webrtc::FieldTrialsView const& field_trials) const;
54
55 MCNAPI ::webrtc::MdnsResponderInterface* GetMdnsResponder() const;
56
57 MCNAPI Network(
58 ::std::string_view name,
59 ::std::string_view desc,
60 ::rtc::IPAddress const& prefix,
61 int prefix_length,
62 ::rtc::AdapterType type
63 );
64
65 MCNAPI bool SetIPs(::std::vector<::rtc::InterfaceAddress> const& ips, bool changed);
66
67 MCNAPI ::std::string ToString() const;
68
69 MCNAPI ~Network();
70 // NOLINTEND
71
72public:
73 // static functions
74 // NOLINTBEGIN
75 MCNAPI static ::std::pair<::rtc::AdapterType, bool> GuessAdapterFromNetworkCost(int network_cost);
76 // NOLINTEND
77
78public:
79 // constructor thunks
80 // NOLINTBEGIN
81 MCNAPI void* $ctor(
82 ::std::string_view name,
83 ::std::string_view desc,
84 ::rtc::IPAddress const& prefix,
85 int prefix_length,
86 ::rtc::AdapterType type
87 );
88 // NOLINTEND
89
90public:
91 // destructor thunk
92 // NOLINTBEGIN
93 MCNAPI void $dtor();
94 // NOLINTEND
95};
96
97} // namespace rtc
Definition IPAddress.h:7
Definition Network.h:18
MCAPI ~Network()
MCAPI::std::string ToString() const
MCAPI Network(::std::string_view name, ::std::string_view desc, ::rtc::IPAddress const &prefix, int prefix_length, ::rtc::AdapterType type)
MCAPI void $dtor()
MCAPI void * $ctor(::std::string_view name, ::std::string_view desc, ::rtc::IPAddress const &prefix, int prefix_length, ::rtc::AdapterType type)
MCAPI::webrtc::MdnsResponderInterface * GetMdnsResponder() const
MCAPI ushort GetCost(::webrtc::FieldTrialsView const &field_trials) const
MCAPI bool SetIPs(::std::vector<::rtc::InterfaceAddress > const &ips, bool changed)
MCAPI::rtc::IPAddress GetBestIP() const
static MCAPI ::std::pair<::rtc::AdapterType, bool > GuessAdapterFromNetworkCost(int network_cost)
Definition FieldTrialsView.h:7
Definition Alias.h:14