3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/external/webrtc/ArrayView.h"
7#include "mc/external/webrtc/DataChannelEventObserverInterface.h"
8#include "mc/external/webrtc/DataChannelInterface.h"
9#include "mc/external/webrtc/DataChannelSink.h"
10#include "mc/external/webrtc/DataMessageType.h"
11#include "mc/external/webrtc/RTCErrorOr.h"
12#include "mc/external/webrtc/SSLRole.h"
13#include "mc/external/webrtc/SctpDataChannelControllerInterface.h"
14#include "mc/external/webrtc/scoped_refptr.h"
36 enum class DataChannelUsage : uchar {
57 DataChannelController& operator=(DataChannelController
const&);
58 DataChannelController(DataChannelController
const&);
59 DataChannelController();
64 virtual ~DataChannelController() ;
66 virtual ::webrtc::RTCError SendData(
76 virtual void OnChannelStateChanged(
78 ::webrtc::DataChannelInterface::DataState state
87 virtual void OnDataReceived(
89 ::webrtc::DataMessageType type,
93 virtual void OnChannelClosing(
int channel_id) ;
95 virtual void OnChannelClosed(
int channel_id) ;
97 virtual void OnReadyToSend() ;
101 virtual void OnBufferedAmountLow(
int channel_id) ;
111 ::webrtc::DataMessageType type,
113 ::webrtc::DataChannelEventObserverInterface::Message::Direction direction
116 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::SctpDataChannel>>
128 MCNAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::DataChannelInterface>>
136 ::std::optional<::webrtc::StreamId>& sid,
137 ::std::optional<::webrtc::SSLRole> fallback_ssl_role
140 MCNAPI
void SetEventObserver(::std::unique_ptr<::webrtc::DataChannelEventObserverInterface> observer);
Definition CopyOnWriteBuffer.h:11
MCAPI void $OnTransportClosed(::webrtc::RTCError error)
MCAPI void SetEventObserver(::std::unique_ptr<::webrtc::DataChannelEventObserverInterface > observer)
MCAPI void SetupDataChannelTransport_n(::webrtc::DataChannelTransportInterface *transport)
MCAPI uint64 $buffered_amount_low_threshold(::webrtc::StreamId sid) const
MCAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::DataChannelInterface > > InternalCreateDataChannelWithProxy(::std::string const &label, ::webrtc::InternalDataChannelInit const &config)
MCAPI void TeardownDataChannelTransport_n(::webrtc::RTCError error)
MCAPI ::webrtc::RTCErrorOr<::webrtc::scoped_refptr<::webrtc::SctpDataChannel > > CreateDataChannel(::std::string const &label, ::webrtc::InternalDataChannelInit &config)
MCAPI void $SetBufferedAmountLowThreshold(::webrtc::StreamId sid, uint64 bytes)
MCAPI ::std::vector<::webrtc::DataChannelStats > GetDataChannelStats() const
static MCAPI void ** $vftableForSctpDataChannelControllerInterface()
MCAPI void OnTransportChanged(::webrtc::DataChannelTransportInterface *new_data_channel_transport)
MCAPI ::std::optional<::webrtc::DataChannelEventObserverInterface::Message > BuildObserverMessage(::webrtc::StreamId sid, ::webrtc::DataMessageType type, ::webrtc::ArrayView< uchar const > payload, ::webrtc::DataChannelEventObserverInterface::Message::Direction direction) const
static MCAPI void ** $vftableForDataChannelSink()
MCAPI void $OnChannelClosing(int channel_id)
MCAPI void $OnReadyToSend()
MCAPI uint64 $buffered_amount(::webrtc::StreamId sid) const
MCAPI::webrtc::RTCError ReserveOrAllocateSid(::std::optional<::webrtc::StreamId > &sid, ::std::optional<::webrtc::SSLRole > fallback_ssl_role)
MCAPI bool HasDataChannels() const
MCAPI void $OnChannelStateChanged(::webrtc::SctpDataChannel *channel, ::webrtc::DataChannelInterface::DataState state)
MCAPI::webrtc::RTCError $SendData(::webrtc::StreamId sid, ::webrtc::SendDataParams const ¶ms, ::webrtc::CopyOnWriteBuffer const &payload)
MCAPI void $RemoveSctpDataStream(::webrtc::StreamId sid)
MCAPI void set_data_channel_transport(::webrtc::DataChannelTransportInterface *transport)
MCAPI void $AddSctpDataStream(::webrtc::StreamId sid, ::webrtc::PriorityValue priority)
MCAPI void $OnDataReceived(int channel_id, ::webrtc::DataMessageType type, ::webrtc::CopyOnWriteBuffer const &buffer)
MCAPI bool HasUsedDataChannels() const
MCAPI void PrepareForShutdown()
MCAPI void AllocateSctpSids(::webrtc::SSLRole role)
MCAPI void $OnChannelClosed(int channel_id)
MCAPI void $OnBufferedAmountLow(int channel_id)
MCAPI bool HandleOpenMessage_n(int channel_id, ::webrtc::DataMessageType type, ::webrtc::CopyOnWriteBuffer const &buffer)
Definition DataChannelEventObserverInterface.h:7
Definition DataChannelInterface.h:19
Definition DataChannelSink.h:16
Definition DataChannelTransportInterface.h:16
Definition PriorityValue.h:16
Definition SctpDataChannelControllerInterface.h:20
Definition SctpDataChannel.h:29
Definition DataChannelStats.h:7
Definition InternalDataChannelInit.h:10
Definition SendDataParams.h:7