LeviLamina
Loading...
Searching...
No Matches
AllocationSequence.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/cricket/ProtocolType.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace cricket { class BasicPortAllocatorSession; }
11namespace cricket { class PortInterface; }
12namespace cricket { struct PortConfiguration; }
13namespace cricket { struct RelayServerConfig; }
14namespace rtc { class AsyncPacketSocket; }
15namespace rtc { class Network; }
16namespace rtc { class ReceivedPacket; }
17// clang-format on
18
19namespace cricket {
20
22public:
23 // AllocationSequence inner types define
24 enum class State : int {
25 KInit = 0,
26 KRunning = 1,
27 KStopped = 2,
28 KCompleted = 3,
29 };
30
31public:
32 // member variables
33 // NOLINTBEGIN
50 // NOLINTEND
51
52public:
53 // prevent constructor by default
54 AllocationSequence& operator=(AllocationSequence const&);
57
58public:
59 // member functions
60 // NOLINTBEGIN
63 ::rtc::Network const* network,
65 uint flags,
66 ::std::function<void()> port_allocation_complete_callback
67 );
68
69 MCNAPI void Clear();
70
71 MCNAPI void CreateRelayPorts();
72
73 MCNAPI void CreateStunPorts();
74
75 MCNAPI void CreateTCPPorts();
76
77 MCNAPI void CreateTurnPort(::cricket::RelayServerConfig const& config, int relative_priority);
78
79 MCNAPI void CreateUDPPorts();
80
81 MCNAPI void
83
84 MCNAPI void Init();
85
86 MCNAPI void OnNetworkFailed();
87
89
90 MCNAPI void OnReadPacket(::rtc::AsyncPacketSocket* socket, ::rtc::ReceivedPacket const& packet);
91
92 MCNAPI void Process(int epoch);
93
94 MCNAPI void Start();
95
96 MCNAPI void Stop();
97
99 // NOLINTEND
100
101public:
102 // constructor thunks
103 // NOLINTBEGIN
104 MCNAPI void* $ctor(
106 ::rtc::Network const* network,
108 uint flags,
109 ::std::function<void()> port_allocation_complete_callback
110 );
111 // NOLINTEND
112
113public:
114 // destructor thunk
115 // NOLINTBEGIN
116 MCNAPI void $dtor();
117 // NOLINTEND
118};
119
120} // namespace cricket
Definition AllocationSequence.h:21
MCAPI void Process(int epoch)
MCAPI void * $ctor(::cricket::BasicPortAllocatorSession *session, ::rtc::Network const *network, ::cricket::PortConfiguration *config, uint flags, ::std::function< void()> port_allocation_complete_callback)
MCAPI void OnPortDestroyed(::cricket::PortInterface *port)
MCAPI void CreateTurnPort(::cricket::RelayServerConfig const &config, int relative_priority)
MCAPI AllocationSequence(::cricket::BasicPortAllocatorSession *session, ::rtc::Network const *network, ::cricket::PortConfiguration *config, uint flags, ::std::function< void()> port_allocation_complete_callback)
MCAPI void DisableEquivalentPhases(::rtc::Network const *network, ::cricket::PortConfiguration *config, uint *flags)
MCAPI void OnReadPacket(::rtc::AsyncPacketSocket *socket, ::rtc::ReceivedPacket const &packet)
Definition BasicPortAllocatorSession.h:24
Definition PortInterface.h:29
Definition AsyncPacketSocket.h:20
Definition Network.h:18
Definition ReceivedPacket.h:16
Definition PortConfiguration.h:17
Definition RelayServerConfig.h:15
Definition Alias.h:14