More little changes
This commit is contained in:
parent
98752b395a
commit
98bce2aa01
|
@ -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){ }));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue