LeviLamina
Loading...
Searching...
No Matches
SocketCache.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/brstd/flat_map.h"
7
8// auto generated forward declare list
9// clang-format off
10namespace rtc { class AsyncPacketSocket; }
11namespace rtc { class IPAddress; }
12namespace rtc { class SocketAddress; }
13// clang-format on
14
15namespace NetherNet {
16
18public:
19 // member variables
20 // NOLINTBEGIN
23 // NOLINTEND
24
25public:
26 // prevent constructor by default
27 SocketCache& operator=(SocketCache const&);
30
31public:
32 // member functions
33 // NOLINTBEGIN
34 MCNAPI ::std::shared_ptr<::rtc::AsyncPacketSocket>
35 _tryGetCachedSocket(::rtc::SocketAddress const& address, ushort minPort, ushort maxPort);
36
37 MCNAPI ::std::shared_ptr<::rtc::AsyncPacketSocket>
38 createGlobalUdpSocket(::rtc::SocketAddress const& address, ushort minPort, ushort maxPort);
39 // NOLINTEND
40};
41
42} // namespace NetherNet
Definition SocketCache.h:17
MCAPI ::std::shared_ptr<::rtc::AsyncPacketSocket > createGlobalUdpSocket(::rtc::SocketAddress const &address, ushort minPort, ushort maxPort)
MCAPI ::std::shared_ptr<::rtc::AsyncPacketSocket > _tryGetCachedSocket(::rtc::SocketAddress const &address, ushort minPort, ushort maxPort)
Definition SocketAddress.h:12
Definition Alias.h:14