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/external/webrtc/PeerConnectionInterface.h"
9#include "mc/external/webrtc/scoped_refptr.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace webrtc { class DataChannelInterface; }
14namespace webrtc { class RTCStatsReport; }
15// clang-format on
16
17namespace NetherNet {
18
19class NetworkSession : public ::NetherNet::ContextProxy {
20public:
21 // NetworkSession inner types declare
22 // clang-format off
24 // clang-format on
25
26 // NetworkSession inner types define
27 enum class Direction : int {
28 Incoming = 0,
29 Outgoing = 1,
30 };
31
33
34public:
35 // member variables
36 // NOLINTBEGIN
58 // NOLINTEND
59
60public:
61 // prevent constructor by default
62 NetworkSession& operator=(NetworkSession const&);
63 NetworkSession(NetworkSession const&);
64 NetworkSession();
65
66public:
67 // virtual functions
68 // NOLINTBEGIN
69 virtual ~NetworkSession() /*override*/;
70 // NOLINTEND
71
72public:
73 // member functions
74 // NOLINTBEGIN
75 MCNAPI void CheckUpdateStats();
76
77 MCNAPI void CloseWithReason(::NetherNet::ESessionError error) const;
78
80
81 MCNAPI void _onStatsDelivered(::webrtc::RTCStatsReport const& report);
82
83 MCNAPI void onIceConnectionChange(::webrtc::PeerConnectionInterface::IceConnectionState newState);
84 // NOLINTEND
85
86public:
87 // destructor thunk
88 // NOLINTBEGIN
89 MCNAPI void $dtor();
90 // NOLINTEND
91
92public:
93 // vftables
94 // NOLINTBEGIN
95 MCNAPI static void** $vftable();
96 // NOLINTEND
97};
98
99} // namespace NetherNet
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)
static MCAPI void ** $vftable()
MCAPI void onIceConnectionChange(::webrtc::PeerConnectionInterface::IceConnectionState newState)
Definition DataChannelInterface.h:19
Definition RTCStatsReport.h:17
Definition scoped_refptr.h:8
Definition Alias.h:14