mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-21 14:49:19 +02:00
reformat: remove redundant qualifiers
This commit is contained in:
@@ -222,7 +222,7 @@ std::shared_ptr<network::server> network::tcp::asio_manager::create_server(std::
|
||||
int port;
|
||||
stream >> port;
|
||||
|
||||
return std::make_shared<tcp::server>(backbuffer, io_context, host, port);
|
||||
return std::make_shared<server>(backbuffer, io_context, host, port);
|
||||
}
|
||||
|
||||
std::shared_ptr<network::client> network::tcp::asio_manager::create_client(const std::string &conf) {
|
||||
@@ -234,7 +234,7 @@ std::shared_ptr<network::client> network::tcp::asio_manager::create_client(const
|
||||
int port;
|
||||
stream >> port;
|
||||
|
||||
return std::make_shared<tcp::client>(io_context, host, port);
|
||||
return std::make_shared<client>(io_context, host, port);
|
||||
}
|
||||
|
||||
void network::tcp::asio_manager::update() {
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace network::tcp
|
||||
client(asio::io_context &io_ctx, const std::string &host, uint32_t port);
|
||||
};
|
||||
|
||||
class asio_manager : public network::backend_manager {
|
||||
class asio_manager : public backend_manager {
|
||||
asio::io_context io_context;
|
||||
|
||||
public:
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace network
|
||||
manager();
|
||||
|
||||
std::optional<server_manager> servers;
|
||||
std::shared_ptr<network::client> client;
|
||||
std::shared_ptr<client> client;
|
||||
|
||||
void create_server(const std::string &backend, const std::string &conf);
|
||||
void connect(const std::string &backend, const std::string &conf);
|
||||
|
||||
@@ -30,7 +30,7 @@ void network::server_hello::deserialize(std::istream &stream)
|
||||
scenario = sn_utils::d_str(stream);
|
||||
}
|
||||
|
||||
void ::network::request_command::serialize(std::ostream &stream) const
|
||||
void network::request_command::serialize(std::ostream &stream) const
|
||||
{
|
||||
sn_utils::ls_uint32(stream, commands.size());
|
||||
for (auto const &kv : commands)
|
||||
|
||||
Reference in New Issue
Block a user