3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/nether_net/LogSeverity.h"
7#include "mc/deps/nether_net/utils/ErrorOr.h"
27MCNAPI ::NetherNet::ErrorOr<::std::unique_ptr<::NetherNet::AesContext>, ::std::error_code> CreateEnvelope(uint64
id);
29MCNAPI uint64 CreateID();
31MCNAPI ::NetherNet::ErrorOr<::std::vector<uchar>, ::std::error_code> CreateKey(uint64
id);
33MCNAPI ::NetherNet::INetherNetTransportInterface* CreateNetherNetTransportInterface(
34 ::NetherNet::NetworkID localID,
35 ::NetherNet::TransportConfiguration* pConfiguration,
36 ::NetherNet::INetherNetTransportInterfaceCallbacks* pCallbacks
39MCNAPI
void DestroyNetherNetTransportInterface(::NetherNet::INetherNetTransportInterface* transportInterface);
41MCNAPI ::std::error_code GetLastSystemError();
43MCNAPI ::std::error_code GetSystemError(
int error);
45MCNAPI
void InitializeNetherNetTransport(::NetherNet::GlobalConfiguration
const& config);
48MCNAPI
void SetNetherNetTransportLogging(::NetherNet::LogSeverity level);
51MCNAPI
void ShutdownNetherNetTransport();
53MCNAPI ::std::optional<::std::variant<
54 ::NetherNet::ConnectRequest,
55 ::NetherNet::ConnectResponse,
56 ::NetherNet::ConnectError,
57 ::NetherNet::CandidateAdd>>
58TryParseSignalingMessage(::std::string_view message);
60MCNAPI ::std::vector<::std::byte> makeDiscoveryMessagePacket(
61 ::NetherNet::NetworkID senderId,
62 ::NetherNet::NetworkID recipientId,
63 ::std::vector<::std::byte> data
66MCNAPI ::std::vector<::std::byte>
67makeDiscoveryResponsePacket(::NetherNet::NetworkID senderId, ::std::vector<::std::byte> data);
72MCNAPI ::rtc::IPAddress
const& IPv4Any();
74MCNAPI ::rtc::IPAddress
const& IPv4Broadcast();
76MCNAPI ::rtc::IPAddress
const& IPv6AllHostsLinkLocal();
78MCNAPI ::rtc::IPAddress
const& IPv6Any();
Definition AesContext.h:15
Definition CandidateAdd.h:7
Definition ConnectError.h:7
Definition ConnectRequest.h:7
Definition ConnectResponse.h:7
Definition INetherNetTransportInterfaceCallbacks.h:16
Definition INetherNetTransportInterface.h:21
Definition GlobalConfiguration.h:7
Definition NetworkID.h:17
Definition TransportConfiguration.h:7