LeviLamina
Loading...
Searching...
No Matches
ISocketFactory.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace NetherNet { class ITcpListener; }
8namespace NetherNet { class IUdpSocket; }
9// clang-format on
10
11namespace NetherNet {
12
14public:
15 // virtual functions
16 // NOLINTBEGIN
17 virtual ~ISocketFactory() = default;
18
19 virtual ::std::unique_ptr<::NetherNet::IUdpSocket>
20 createUdpSocket(::std::string const& localAddress, ushort minPort, ushort maxPort) = 0;
21
22 virtual ::std::unique_ptr<::NetherNet::ITcpListener>
23 listen(::std::string const& localAddress, ushort minPort, ushort maxPort) = 0;
24 // NOLINTEND
25};
26
27} // namespace NetherNet
Definition ISocketFactory.h:13
Definition ITcpListener.h:15
Definition IUdpSocket.h:12