More little changes

This commit is contained in:
bernatx 2022-07-20 23:27:33 +02:00 committed by bernat
parent 98752b395a
commit 98bce2aa01
2 changed files with 4 additions and 4 deletions

View File

@ -110,12 +110,12 @@ namespace multigpu {
boost::asio::async_write(
self->_socket,
boost::asio::buffer(&this_size, sizeof(this_size)),
boost::asio::bind_executor(self->_strand, [](const boost::system::error_code &, size_t bytes){ }));
boost::asio::bind_executor(self->_strand, [](const boost::system::error_code &, size_t){ }));
// send characters
boost::asio::async_write(
self->_socket,
boost::asio::buffer(text.c_str(), text.size()),
boost::asio::bind_executor(self->_strand, [](const boost::system::error_code &, size_t bytes){ }));
boost::asio::bind_executor(self->_strand, [](const boost::system::error_code &, size_t){ }));
});
}

View File

@ -43,10 +43,10 @@ namespace multigpu {
uint16_t port,
SecondaryCommands::callback_type callback) :
_pool(),
_buffer_pool(std::make_shared<BufferPool>()),
_socket(_pool.io_context()),
_strand(_pool.io_context()),
_connection_timer(_pool.io_context()) {
_connection_timer(_pool.io_context()),
_buffer_pool(std::make_shared<BufferPool>()) {
boost::asio::ip::address ip_address = boost::asio::ip::address::from_string(ip);
_endpoint = boost::asio::ip::tcp::endpoint(ip_address, port);