16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 13:39:18 +02:00
This commit is contained in:
milek7
2019-01-01 00:26:11 +01:00
parent 4db460d655
commit 63afece4a6
24 changed files with 563 additions and 297 deletions

View File

@@ -2,13 +2,14 @@
#include <asio.hpp>
#include <memory>
#include "network/network.h"
#include "command.h"
namespace network
{
class manager
{
asio::io_context io_context;
std::vector<std::shared_ptr<server>> servers;
std::shared_ptr<network::server> server;
std::shared_ptr<network::client> client;
public:
@@ -17,5 +18,8 @@ namespace network
void create_server();
void connect();
void poll();
std::tuple<double, command_queue::commanddatasequence_map> get_next_delta();
void push_delta(double delta, command_queue::commanddatasequence_map commands);
};
}