16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 21:29: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

@@ -7,7 +7,7 @@ network::manager::manager()
void network::manager::create_server()
{
servers.emplace_back(std::make_shared<tcp_server>(io_context));
server = std::make_shared<tcp_server>(io_context);
}
void network::manager::poll()
@@ -19,3 +19,13 @@ void network::manager::connect()
{
client = std::make_shared<tcp_client>(io_context);
}
std::tuple<double, command_queue::commanddatasequence_map> network::manager::get_next_delta()
{
return client->get_next_delta();
}
void network::manager::push_delta(double delta, command_queue::commanddatasequence_map commands)
{
server->push_delta(delta, commands);
}