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/webrtc/ProtocolType.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace webrtc { class AsyncPacketSocket; }
11namespace webrtc { class Network; }
12namespace webrtc { class PortInterface; }
13namespace webrtc { class ReceivedIpPacket; }
14namespace webrtc { struct PortConfiguration; }
15namespace webrtc { struct RelayServerConfig; }
16// clang-format on
17
18namespace webrtc {
19
20class AllocationSequence {
21public:
22 // AllocationSequence inner types define
23 enum class State : int {
24 KInit = 0,
25 KRunning = 1,
26 KStopped = 2,
27 KCompleted = 3,
28 };
29
30public:
31 // member variables
32 // NOLINTBEGIN
49 // NOLINTEND
50
51public:
52 // prevent constructor by default
53 AllocationSequence& operator=(AllocationSequence const&);
54 AllocationSequence(AllocationSequence const&);
55 AllocationSequence();
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCNAPI void Clear();
61
62 MCNAPI void CreateStunPorts();
63
64 MCNAPI void CreateTCPPorts();
65
66 MCNAPI void CreateTurnPort(::webrtc::RelayServerConfig const& config, int relative_priority);
67
68 MCNAPI void CreateUDPPorts();
69
70 MCNAPI void
72
73 MCNAPI void Init();
74
76
78
79 MCNAPI void Process(int epoch);
80 // NOLINTEND
81};
82
83} // namespace webrtc
MCAPI void Process(int epoch)
MCAPI void OnPortDestroyed(::webrtc::PortInterface *port)
MCAPI void CreateTurnPort(::webrtc::RelayServerConfig const &config, int relative_priority)
MCAPI void DisableEquivalentPhases(::webrtc::Network const *network, ::webrtc::PortConfiguration *config, uint *flags)
MCAPI void OnReadPacket(::webrtc::AsyncPacketSocket *socket, ::webrtc::ReceivedIpPacket const &packet)
Definition AsyncPacketSocket.h:20
Definition Network.h:18
Definition PortInterface.h:29
Definition ReceivedIpPacket.h:17
Definition Alias.h:14
Definition PortConfiguration.h:18
Definition RelayServerConfig.h:15