LeviLamina
Loading...
Searching...
No Matches
NetworkSession.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/nether_net/ContextProxy.h"
7#include "mc/deps/nether_net/ESessionError.h"
8#include "mc/deps/nether_net/SignalingChannelId.h"
9#include "mc/external/webrtc/PeerConnectionInterface.h"
10#include "mc/external/webrtc/scoped_refptr.h"
11
12// auto generated forward declare list
13// clang-format off
14namespace NetherNet { class ConnectRequest; }
15namespace NetherNet { struct NetworkID; }
16namespace webrtc { class DataChannelInterface; }
17namespace webrtc { class RTCStatsReport; }
18// clang-format on
19
20namespace NetherNet {
21
22class NetworkSession : public ::NetherNet::ContextProxy {
23public:
24 // NetworkSession inner types declare
25 // clang-format off
27 // clang-format on
28
29 // NetworkSession inner types define
30 enum class Direction : int {
31 Incoming = 0,
32 Outgoing = 1,
33 };
34
36
37public:
38 // member variables
39 // NOLINTBEGIN
61 // NOLINTEND
62
63public:
64 // prevent constructor by default
65 NetworkSession& operator=(NetworkSession const&);
66 NetworkSession(NetworkSession const&);
67 NetworkSession();
68
69public:
70 // virtual functions
71 // NOLINTBEGIN
72 virtual ~NetworkSession() /*override*/;
73 // NOLINTEND
74
75public:
76 // member functions
77 // NOLINTBEGIN
78 MCNAPI void CheckUpdateStats();
79
80 MCNAPI void CloseWithReason(::NetherNet::ESessionError error) const;
81
82 MCNAPI void InitializeIncoming(
84 ::NetherNet::ConnectRequest const& offer,
85 ::NetherNet::SignalingChannelId preference
86 );
87
89
91
92 MCNAPI void _onStatsDelivered(::webrtc::RTCStatsReport const& report);
93
94 MCNAPI void onIceConnectionChange(::webrtc::PeerConnectionInterface::IceConnectionState newState);
95 // NOLINTEND
96
97public:
98 // destructor thunk
99 // NOLINTBEGIN
100 MCNAPI void $dtor();
101 // NOLINTEND
102
103public:
104 // vftables
105 // NOLINTBEGIN
106 MCNAPI static void** $vftable();
107 // NOLINTEND
108};
109
110} // namespace NetherNet
Definition ConnectRequest.h:7
Definition ContextProxy.h:18
MCAPI void CloseWithReason(::NetherNet::ESessionError error) const
MCAPI void _onStatsDelivered(::webrtc::RTCStatsReport const &report)
MCAPI void CheckUpdateStats()
MCAPI void _onDataChannel(::webrtc::scoped_refptr<::webrtc::DataChannelInterface > dataChannel)
MCAPI void InitializeIncoming(::NetherNet::NetworkID remoteID, ::NetherNet::ConnectRequest const &offer, ::NetherNet::SignalingChannelId preference)
static MCAPI void ** $vftable()
MCAPI void InitializeOutgoing(::NetherNet::NetworkID remoteID)
MCAPI void onIceConnectionChange(::webrtc::PeerConnectionInterface::IceConnectionState newState)
Definition DataChannelInterface.h:19
Definition RTCStatsReport.h:17
Definition scoped_refptr.h:8
Definition NetworkID.h:17
Definition Alias.h:14