LeviLamina
Loading...
Searching...
No Matches
NetherNet.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/nether_net/LogSeverity.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace NetherNet { class INetherNetTransportInterface; }
11namespace NetherNet { class INetherNetTransportInterfaceCallbacks; }
12namespace NetherNet { class ISocketFactory; }
13namespace NetherNet { struct GlobalConfiguration; }
14namespace NetherNet { struct NetworkID; }
15namespace NetherNet { struct TransportConfiguration; }
16namespace webrtc { class IPAddress; }
17// clang-format on
18
19namespace NetherNet {
20// functions
21// NOLINTBEGIN
22MCNAPI ::NetherNet::INetherNetTransportInterface* CreateNetherNetTransportInterface(
23 ::NetherNet::NetworkID const& localID,
24 ::NetherNet::TransportConfiguration const& configuration,
25 ::NetherNet::INetherNetTransportInterfaceCallbacks* pCallbacks
26);
27
28#ifdef LL_PLAT_C
29MCNAPI ::std::unique_ptr<::NetherNet::ISocketFactory> CreateSocketFactory();
30#endif
31
32MCNAPI void DestroyNetherNetTransportInterface(::NetherNet::INetherNetTransportInterface* transportInterface);
33
34MCNAPI void InitializeNetherNetTransport(::NetherNet::GlobalConfiguration const& config);
35
36#ifdef LL_PLAT_C
37MCNAPI void SetNetherNetTransportLogging(::NetherNet::LogSeverity level);
38#endif
39
40MCNAPI void ShutdownNetherNetTransport();
41// NOLINTEND
42
43// static variables
44// NOLINTBEGIN
45MCNAPI ::webrtc::IPAddress const& IPv4Any();
46
47MCNAPI ::webrtc::IPAddress const& IPv4Broadcast();
48
49MCNAPI ::webrtc::IPAddress const& IPv6AllHostsLinkLocal();
50
51MCNAPI ::webrtc::IPAddress const& IPv6Any();
52// NOLINTEND
53
54} // namespace NetherNet
Definition INetherNetTransportInterfaceCallbacks.h:20
Definition INetherNetTransportInterface.h:22
Definition ISocketFactory.h:13
Definition IPAddress.h:7
Definition GlobalConfiguration.h:7
Definition NetworkID.h:17
Definition TransportConfiguration.h:11