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"
45 DataChannel& operator=(DataChannel
const&);
46 DataChannel(DataChannel
const&);
52 virtual ~DataChannel() =
default;
54 virtual void OnStateChange() ;
58 virtual void OnBufferedAmountChange(uint64) ;
60 virtual bool IsOkToCallOnTheNetworkThread() ;
104 struct PartialReceive {
114 PartialReceive& operator=(PartialReceive
const&);
115 PartialReceive(PartialReceive
const&);
132 PacketQueue& operator=(PacketQueue
const&);
133 PacketQueue(PacketQueue
const&);
144 MCNAPI
void _sendFragment(uchar header, uchar
const* payload, uint64 payloadSize, ::NetherNet::ESendType type);
Definition ContextProxy.h:18
Definition PacketQueue.h:31
MCAPI bool $IsOkToCallOnTheNetworkThread()
MCAPI void $OnBufferedAmountChange(uint64)
MCAPI void setChannel(::webrtc::scoped_refptr<::webrtc::DataChannelInterface > channel)
MCAPI void $OnMessage(::webrtc::DataBuffer const &buffer)
MCAPI void $OnStateChange()
MCAPI DataChannel(::NetherNet::ContextProxy const &ctx, ::brstd::move_only_function< void(::NetherNet::ESessionError)> onClose, ::brstd::move_only_function< void(uchar const *, uint64)> onData)
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 send(::webrtc::CopyOnWriteBuffer buffer)
MCAPI void _sendFragment(uchar header, uchar const *payload, uint64 payloadSize, ::NetherNet::ESendType type)
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 PacketQueue.h:104
Definition DataBuffer.h:7