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/deps/nether_net/ILanEventHandler.h"
10#include "mc/deps/nether_net/INetherNetTransportInterface.h"
11#include "mc/deps/nether_net/ISignalingEventHandler.h"
12#include "mc/deps/nether_net/SignalingChannelId.h"
13#include "mc/deps/nether_net/utils/ErrorOr.h"
14#include "mc/external/webrtc/PeerConnectionInterface.h"
18namespace Bedrock::PubSub {
class Subscription; }
19namespace NetherNet {
class CandidateAdd; }
20namespace NetherNet {
class ConnectError; }
21namespace NetherNet {
class ConnectRequest; }
22namespace NetherNet {
class ConnectResponse; }
23namespace NetherNet {
class INetherNetTransportInterfaceCallbacks; }
24namespace NetherNet {
class ISignalingInterface; }
25namespace NetherNet {
struct NetherNetTransportServerConfiguration; }
26namespace NetherNet {
struct NetworkID; }
27namespace NetherNet {
struct SessionState; }
28namespace NetherNet {
struct StunRelayServer; }
29namespace NetherNet::LanEvents {
struct DiscoveryRequest; }
30namespace NetherNet::LanEvents {
struct DiscoveryResponse; }
31namespace NetherNet::LanEvents {
struct MessageReceived; }
32namespace NetherNet::SignalingEvents {
struct MessageReceived; }
71 virtual bool SendPacket(
74 ::std::string
const& data,
75 ::NetherNet::ESendType eSendType
86 virtual bool ReadPacket(
101 virtual bool GetSessionState(
108 virtual void SetSignalingInterface(
109 ::std::shared_ptr<::NetherNet::ISignalingInterface>
const& pWebRTCSignalingInterface
113 virtual void SetRelayConfig(::std::vector<::NetherNet::StunRelayServer>
const& config) ;
116 virtual ::Bedrock::PubSub::Subscription
123 virtual bool IsBroadcastDiscoveryEnabled() ;
126 virtual void EnableBroadcastDiscovery() ;
129 virtual void DisableBroadcastDiscovery() ;
156 ::std::string
const& message,
157 ::NetherNet::SignalingChannelId sourceChannel
167 ::std::optional<::NetherNet::SignalingChannelId> preference
183 ::std::string
const& data,
184 ::NetherNet::ESendType eSendType
204 MCNAPI
void $SetRelayConfig(::std::vector<::NetherNet::StunRelayServer>
const& config);
Definition CandidateAdd.h:7
Definition ConnectError.h:7
Definition ConnectRequest.h:7
Definition ConnectResponse.h:7
Definition ContextProxy.h:18
Definition INetherNetTransportInterfaceCallbacks.h:15
Definition INetherNetTransportInterface.h:21
Definition SimpleNetworkInterfaceImpl.h:40
MCAPI bool $OpenSessionWithUser(::NetherNet::NetworkID networkIDRemote)
MCAPI ::NetherNet::ErrorOr< void, ::NetherNet::ESessionError > SendToSignalingChannel(::NetherNet::NetworkID networkIDTo, ::std::variant< ::NetherNet::ConnectRequest, ::NetherNet::ConnectResponse, ::NetherNet::ConnectError, ::NetherNet::CandidateAdd > const &signal, ::std::optional<::NetherNet::SignalingChannelId > preference)
MCAPI void $DisableBroadcastDiscovery()
MCAPI void $OnSignalingEvent(::NetherNet::SignalingEvents::MessageReceived const &event)
MCAPI void InitializeConfiguration(::NetherNet::NetherNetTransportServerConfiguration const *pConfiguration, ::webrtc::PeerConnectionInterface::RTCConfiguration *pRtcConfigOut)
static MCAPI void ** $vftableForISignalingEventHandler()
static MCAPI void ** $vftableForContextProxy()
MCAPI void $OnLanEvent(::NetherNet::LanEvents::DiscoveryRequest const &event)
MCAPI void $ClearPacketData(::NetherNet::NetworkID remoteId, uint64 connectionId)
MCAPI void ReceiveFromSignalingChannel(::NetherNet::NetworkID from, ::std::string const &message, ::NetherNet::SignalingChannelId sourceChannel)
MCAPI bool $IsPacketAvailable(::NetherNet::NetworkID remoteId, uint64 connectionId, uint *pcbMessageSize)
MCAPI void $SetSignalingInterface(::std::shared_ptr<::NetherNet::ISignalingInterface > const &pWebRTCSignalingInterface)
MCAPI bool $ReadPacket(::NetherNet::NetworkID remoteId, uint64 connectionId, void *pubDest, uint cbDest, uint *pcbMessageSize)
static MCAPI void ** $vftableForINetherNetTransportInterface()
MCAPI void $SetRelayConfig(::std::vector<::NetherNet::StunRelayServer > const &config)
MCAPI void $OnLanEvent(::NetherNet::LanEvents::DiscoveryResponse const &event)
MCAPI::Bedrock::PubSub::Subscription $RegisterEventHandler(::NetherNet::ILanEventHandler *handler)
MCAPI::Bedrock::PubSub::Subscription $RegisterEventHandler(::NetherNet::ISignalingEventHandler *handler)
MCAPI void Initialize(::NetherNet::INetherNetTransportInterfaceCallbacks *pCallbacks)
MCAPI bool $SendPacket(::NetherNet::NetworkID remoteId, uint64 connectionId, ::std::string const &data, ::NetherNet::ESendType eSendType)
MCAPI bool $IsBroadcastDiscoveryEnabled()
static MCAPI void ** $vftableForILanEventHandler()
MCAPI void $OnLanEvent(::NetherNet::LanEvents::MessageReceived const &event)
MCAPI void $EnableBroadcastDiscovery()
MCAPI bool $CloseSessionWithUser(::NetherNet::NetworkID networkIDRemote, uint64 connectionId)
MCAPI bool $GetSessionState(::NetherNet::NetworkID peerId, uint64 connectionId, ::NetherNet::SessionState *pConnectionState)
Definition ILanEventHandler.h:15
Definition ISignalingEventHandler.h:12
Definition DiscoveryRequest.h:7
Definition DiscoveryResponse.h:7
Definition MessageReceived.h:7
Definition NetherNetTransportServerConfiguration.h:7
Definition NetworkID.h:12
Definition SessionState.h:7
Definition MessageReceived.h:7
Definition PeerConnectionInterface.h:193