LeviLamina
Loading...
Searching...
No Matches
IUdpSocket.h
1
#pragma once
2
3
#include "mc/_HeaderOutputPredefine.h"
4
5
// auto generated inclusion list
6
#include "mc/deps/core/threading/Async.h"
7
#include "mc/deps/core/utility/pub_sub/Connector.h"
8
#include "mc/platform/Result.h"
9
10
namespace
NetherNet {
11
12
class
IUdpSocket
{
13
public
:
14
// virtual functions
15
// NOLINTBEGIN
16
virtual
~IUdpSocket
() =
default
;
17
18
virtual ::Bedrock::Threading::Async<::Bedrock::Result<uint64>>
19
sendTo(::gsl::span<::std::byte const> data, ::std::string
const
& remoteIP, ushort remotePort) = 0;
20
21
virtual ::Bedrock::PubSub::Connector<void(::gsl::span<::std::byte const>, ::std::string
const
&, ushort)>&
22
onPacketReceived() = 0;
23
24
virtual
ushort getLocalPort()
const
= 0;
25
// NOLINTEND
26
};
27
28
}
// namespace NetherNet
NetherNet::IUdpSocket
Definition
IUdpSocket.h:12
src
mc
deps
nether_net
IUdpSocket.h
Generated on
for LeviLamina by
1.16.1