Files
VoidNet/include/HLAPI/Server.hpp
TheDoctor c50d40341f Update
Removed Message Queue
Sending and receiving is now in one thread (gotta make them separate)
Created a very crude Plugin System
Renamed AllAndMe to AllAndServer
2019-10-15 16:27:16 +01:00

25 lines
355 B
C++

#pragma once
#include <VoidNet/Net.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);
private:
std::shared_ptr<std::net::TcpServer> m_tcpServer;
};
}