3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/nether_net/ContextProxy.h"
7#include "mc/deps/nether_net/ESendType.h"
8#include "mc/deps/nether_net/ESessionError.h"
9#include "mc/external/webrtc/DataChannelObserver.h"
10#include "mc/external/webrtc/scoped_refptr.h"
11#include "mc/platform/brstd/move_only_function.h"
44 DataChannel& operator=(DataChannel
const&);
45 DataChannel(DataChannel
const&);
51 virtual ~DataChannel() ;
53 virtual void OnStateChange() ;
57 virtual void OnBufferedAmountChange(uint64) ;
59 virtual bool IsOkToCallOnTheNetworkThread() ;
131 PacketQueue& operator=(PacketQueue
const&);
132 PacketQueue(PacketQueue
const&);
145 MCNAPI
void _sendFragment(uchar header, uchar
const* payload, uint64 payloadSize, ::NetherNet::ESendType type);
147 MCNAPI ::std::optional<uint64>
pop(uchar* destination, uint64 size);
Definition ContextProxy.h:18
Definition PacketQueue.h:30
MCAPI bool $IsOkToCallOnTheNetworkThread()
MCAPI void $OnBufferedAmountChange(uint64)
MCAPI void send(::rtc::CopyOnWriteBuffer buffer)
MCAPI void setChannel(::webrtc::scoped_refptr<::webrtc::DataChannelInterface > channel)
MCAPI void $OnMessage(::webrtc::DataBuffer const &buffer)
MCAPI void $OnStateChange()
MCAPI void _updateState()
MCAPI DataChannel(::NetherNet::ContextProxy const &ctx, ::brstd::move_only_function< void(::NetherNet::ESessionError)> onClose, ::brstd::move_only_function< void(uchar const *, uint64)> onData)
static MCAPI void ** $vftableForDataChannelObserver()
static MCAPI void ** $vftableForContextProxy()
MCAPI void * $ctor(::NetherNet::ContextProxy const &ctx, ::brstd::move_only_function< void(::NetherNet::ESessionError)> onClose, ::brstd::move_only_function< void(uchar const *, uint64)> onData)
MCAPI void _onOrderedPacket(uchar const *data, uint64 size)
MCAPI void _sendFragment(uchar header, uchar const *payload, uint64 payloadSize, ::NetherNet::ESendType type)
MCAPI ::std::optional< uint64 > pop(uchar *destination, uint64 size)
static MCAPI void ** $vftable()
MCAPI void * $ctor(::NetherNet::ContextProxy const &ctx, ::brstd::move_only_function< void(::NetherNet::ESessionError)> onClose)
MCAPI PacketQueue(::NetherNet::ContextProxy const &ctx, ::brstd::move_only_function< void(::NetherNet::ESessionError)> onClose)
Definition move_only_function.h:9
Definition CopyOnWriteBuffer.h:11
Definition DataChannelInterface.h:19
Definition DataChannelObserver.h:12
Definition scoped_refptr.h:8
Definition DataBuffer.h:7