Renamed HLAPI to VoidNet_HL and VoidNet to VoidNet_LL
This commit is contained in:
29
include/VoidNet_HL/Server.hpp
Normal file
29
include/VoidNet_HL/Server.hpp
Normal file
@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include <VoidNet/Net.hpp>
|
||||
#include "HLAPI/ServerConfig.hpp"
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace std::net
|
||||
{
|
||||
class TcpServer;
|
||||
class Plugin;
|
||||
|
||||
class Server
|
||||
{
|
||||
public:
|
||||
Server(uint32_t max_connections = 20, uint16_t port = DEFAULT_SERVER_PORT);
|
||||
|
||||
void Start();
|
||||
void Stop();
|
||||
|
||||
void AddPlugin(Plugin* plugin);
|
||||
|
||||
public:
|
||||
ServerConfig Config;
|
||||
|
||||
private:
|
||||
std::shared_ptr<std::net::TcpServer> m_tcpServer;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user