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 PortInterface; }
11namespace cricket { struct PortConfiguration; }
12namespace cricket { struct RelayServerConfig; }
13namespace rtc { class AsyncPacketSocket; }
14namespace rtc { class Network; }
15namespace rtc { class ReceivedPacket; }
16// clang-format on
17
18namespace cricket {
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(::cricket::RelayServerConfig const& config, int relative_priority);
67
68 MCNAPI void CreateUDPPorts();
69
70 MCNAPI void
72
73 MCNAPI void Init();
74
76
77 MCNAPI void OnReadPacket(::rtc::AsyncPacketSocket* socket, ::rtc::ReceivedPacket const& packet);
78
79 MCNAPI void Process(int epoch);
80 // NOLINTEND
81};
82
83} // namespace cricket
MCAPI void Process(int epoch)
MCAPI void OnPortDestroyed(::cricket::PortInterface *port)
MCAPI void CreateTurnPort(::cricket::RelayServerConfig const &config, int relative_priority)
MCAPI void DisableEquivalentPhases(::rtc::Network const *network, ::cricket::PortConfiguration *config, uint *flags)
MCAPI void OnReadPacket(::rtc::AsyncPacketSocket *socket, ::rtc::ReceivedPacket const &packet)
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