LeviLamina
Loading...
Searching...
No Matches
UDPPort.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 cricket { class StunRequest; }
11namespace rtc { class AsyncPacketSocket; }
12namespace rtc { class Network; }
13namespace rtc { class PacketSocketFactory; }
14namespace rtc { class ReceivedPacket; }
15namespace rtc { class SocketAddress; }
16namespace rtc { class Thread; }
17namespace webrtc { class FieldTrialsView; }
18// clang-format on
19
20namespace cricket {
21
22class UDPPort {
23public:
24 // UDPPort inner types declare
25 // clang-format off
26 class AddressResolver;
27 // clang-format on
28
29 // UDPPort inner types define
31 public:
32 // member functions
33 // NOLINTBEGIN
34 MCAPI AddressResolver(::rtc::PacketSocketFactory*, ::std::function<void(::rtc::SocketAddress const&, int)>);
35
36 MCAPI bool GetResolvedAddress(::rtc::SocketAddress const&, int, ::rtc::SocketAddress*) const;
37
38 MCAPI void Resolve(::rtc::SocketAddress const&, int, ::webrtc::FieldTrialsView const&);
39 // NOLINTEND
40
41 public:
42 // constructor thunks
43 // NOLINTBEGIN
44 MCAPI void* $ctor(::rtc::PacketSocketFactory*, ::std::function<void(::rtc::SocketAddress const&, int)>);
45 // NOLINTEND
46 };
47
48public:
49 // member functions
50 // NOLINTBEGIN
51 MCAPI bool HasStunCandidateWithAddress(::rtc::SocketAddress const&) const;
52
53 MCAPI bool Init();
54
55 MCAPI void MaybePrepareStunCandidate();
56
57 MCAPI bool MaybeSetDefaultLocalAddress(::rtc::SocketAddress*) const;
58
59 MCAPI void MaybeSetPortCompleteOrError();
60
61 MCAPI void OnLocalAddressReady(::rtc::AsyncPacketSocket*, ::rtc::SocketAddress const&);
62
63 MCAPI void OnReadPacket(::rtc::AsyncPacketSocket*, ::rtc::ReceivedPacket const&);
64
65 MCAPI void OnReadyToSend(::rtc::AsyncPacketSocket*);
66
67 MCAPI void OnResolveResult(::rtc::SocketAddress const&, int);
68
69 MCAPI void OnSendPacket(void const*, uint64, ::cricket::StunRequest*);
70
71 MCAPI void OnStunBindingOrResolveRequestFailed(::rtc::SocketAddress const&, int, ::std::string_view);
72
73 MCAPI void OnStunBindingRequestSucceeded(int, ::rtc::SocketAddress const&, ::rtc::SocketAddress const&);
74
75 MCAPI void ResolveStunAddress(::rtc::SocketAddress const&);
76
77 MCAPI void SendStunBindingRequest(::rtc::SocketAddress const&);
78
79 MCAPI void SendStunBindingRequests();
80
81 MCAPI
82 UDPPort(::rtc::Thread*, ::webrtc::IceCandidateType, ::rtc::PacketSocketFactory*, ::rtc::Network const*, ::rtc::AsyncPacketSocket*, ::std::string_view, ::std::string_view, bool, ::webrtc::FieldTrialsView const*);
83
84 MCAPI
85 UDPPort(::rtc::Thread*, ::webrtc::IceCandidateType, ::rtc::PacketSocketFactory*, ::rtc::Network const*, ushort, ushort, ::std::string_view, ::std::string_view, bool, ::webrtc::FieldTrialsView const*);
86
87 MCAPI void set_stun_keepalive_delay(::std::optional<int> const&);
88 // NOLINTEND
89
90public:
91 // constructor thunks
92 // NOLINTBEGIN
93 MCAPI void*
94 $ctor(::rtc::Thread*, ::webrtc::IceCandidateType, ::rtc::PacketSocketFactory*, ::rtc::Network const*, ::rtc::AsyncPacketSocket*, ::std::string_view, ::std::string_view, bool, ::webrtc::FieldTrialsView const*);
95
96 MCAPI void*
97 $ctor(::rtc::Thread*, ::webrtc::IceCandidateType, ::rtc::PacketSocketFactory*, ::rtc::Network const*, ushort, ushort, ::std::string_view, ::std::string_view, bool, ::webrtc::FieldTrialsView const*);
98 // NOLINTEND
99
100public:
101 // vftables
102 // NOLINTBEGIN
103 MCAPI static void** $vftableForPortInterface();
104
105 MCAPI static void** $vftableForHasSlots();
106 // NOLINTEND
107};
108
109} // namespace cricket
Definition StunRequest.h:14
Definition UDPPort.h:30
Definition UDPPort.h:22
Definition AsyncPacketSocket.h:20
Definition Network.h:18
Definition PacketSocketFactory.h:17
Definition ReceivedPacket.h:16
Definition SocketAddress.h:12
Definition Thread.h:20
Definition FieldTrialsView.h:7