LeviLamina
Loading...
Searching...
No Matches
DataChannelController.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/external/rtc/SSLRole.h"
7#include "mc/external/webrtc/DataMessageType.h"
8#include "mc/external/webrtc/RTCErrorOr.h"
9#include "mc/external/webrtc/scoped_refptr.h"
10
11// auto generated forward declare list
12// clang-format off
13namespace rtc { class CopyOnWriteBuffer; }
14namespace rtc { class Thread; }
15namespace webrtc { class DataChannelInterface; }
16namespace webrtc { class DataChannelTransportInterface; }
17namespace webrtc { class RTCError; }
18namespace webrtc { class SctpDataChannel; }
19namespace webrtc { class StreamId; }
20namespace webrtc { struct DataChannelStats; }
21namespace webrtc { struct InternalDataChannelInit; }
22// clang-format on
23
24namespace webrtc {
25
27public:
28 // member functions
29 // NOLINTBEGIN
30 MCNAPI void AllocateSctpSids(::rtc::SSLRole);
31
32 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::SctpDataChannel>>
34
35 MCNAPI ::std::vector<::webrtc::DataChannelStats> GetDataChannelStats() const;
36
37 MCNAPI bool HandleOpenMessage_n(int, ::webrtc::DataMessageType, ::rtc::CopyOnWriteBuffer const&);
38
39 MCNAPI bool HasDataChannels() const;
40
41 MCNAPI bool HasUsedDataChannels() const;
42
43 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::DataChannelInterface>>
45
47
49
51
53
54 MCNAPI void PrepareForShutdown();
55
56 MCNAPI ::webrtc::RTCError
57 ReserveOrAllocateSid(::std::optional<::webrtc::StreamId>&, ::std::optional<::rtc::SSLRole>);
58
60
62
63 MCNAPI ::rtc::Thread* network_thread() const;
64
66
67 MCNAPI ::rtc::Thread* signaling_thread() const;
68 // NOLINTEND
69
70public:
71 // vftables
72 // NOLINTBEGIN
73 MCNAPI static void** $vftableForDataChannelSink();
74
76 // NOLINTEND
77};
78
79} // namespace webrtc
Definition CopyOnWriteBuffer.h:11
Definition DataChannelController.h:26
MCAPI void set_data_channel_transport(::webrtc::DataChannelTransportInterface *)
MCAPI void OnSctpDataChannelClosed(::webrtc::SctpDataChannel *)
MCAPI void TeardownDataChannelTransport_n(::webrtc::RTCError)
MCAPI ::std::vector<::webrtc::DataChannelStats > GetDataChannelStats() const
static MCAPI void ** $vftableForSctpDataChannelControllerInterface()
MCAPI void OnTransportChanged(::webrtc::DataChannelTransportInterface *)
static MCAPI void ** $vftableForDataChannelSink()
MCAPI::rtc::Thread * signaling_thread() const
MCAPI bool HasDataChannels() const
MCAPI::rtc::Thread * network_thread() const
MCAPI bool HandleOpenMessage_n(int, ::webrtc::DataMessageType, ::rtc::CopyOnWriteBuffer const &)
MCAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::DataChannelInterface > > InternalCreateDataChannelWithProxy(::std::string const &, ::webrtc::InternalDataChannelInit const &)
MCAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::SctpDataChannel > > CreateDataChannel(::std::string const &, ::webrtc::InternalDataChannelInit &)
MCAPI void NotifyDataChannelsOfTransportCreated()
MCAPI bool HasUsedDataChannels() const
MCAPI::webrtc::RTCError ReserveOrAllocateSid(::std::optional<::webrtc::StreamId > &, ::std::optional<::rtc::SSLRole >)
MCAPI void AllocateSctpSids(::rtc::SSLRole)
MCAPI void SetupDataChannelTransport_n(::webrtc::DataChannelTransportInterface *)
MCAPI void OnDataChannelOpenMessage(::webrtc::scoped_refptr<::webrtc::SctpDataChannel >, bool)
Definition DataChannelTransportInterface.h:7
Definition RTCError.h:10
Definition SctpDataChannel.h:28
Definition scoped_refptr.h:8
Definition InternalDataChannelInit.h:12