Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed Jan 9, 2025
1 parent 55d1481 commit 851b818
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ class tasks_processor: public tp_timers::tasks_processor {
connection_ptr c( new connection_with_data(get_ios()) );

c->socket.connect(boost::asio::ip::tcp::endpoint(
boost::asio::ip::address_v4::from_string(addr),
boost::asio::ip::address_v4::make_address_v4(addr),
port_num
));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class tasks_processor: public tp_network_client::tasks_processor {
connection_ptr c( new connection_with_data(get_ios()) );

c->socket.connect(boost::asio::ip::tcp::endpoint(
boost::asio::ip::address_v4::from_string(addr),
boost::asio::ip::address_v4::make_address_v4(addr),
port_num
));

Expand Down
4 changes: 2 additions & 2 deletions Chapter06/flat/04_tasks_processor_network_accept/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class tasks_processor: public tp_timers::tasks_processor {
connection_ptr c( new connection_with_data(get_ios()) );

c->socket.connect(boost::asio::ip::tcp::endpoint(
boost::asio::ip::address_v4::from_string(addr),
boost::asio::ip::address_v4::make_address_v4(addr),
port_num
));

Expand Down Expand Up @@ -408,7 +408,7 @@ class tasks_processor: public tp_network_client::tasks_processor {
connection_ptr c( new connection_with_data(get_ios()) );

c->socket.connect(boost::asio::ip::tcp::endpoint(
boost::asio::ip::address_v4::from_string(addr),
boost::asio::ip::address_v4::make_address_v4(addr),
port_num
));

Expand Down
4 changes: 2 additions & 2 deletions Chapter06/flat/05_tasks_processor_multithread/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class tasks_processor: public tp_timers::tasks_processor {
connection_ptr c( new connection_with_data(get_ios()) );

c->socket.connect(boost::asio::ip::tcp::endpoint(
boost::asio::ip::address_v4::from_string(addr),
boost::asio::ip::address_v4::make_address_v4(addr),
port_num
));

Expand Down Expand Up @@ -408,7 +408,7 @@ class tasks_processor: public tp_network_client::tasks_processor {
connection_ptr c( new connection_with_data(get_ios()) );

c->socket.connect(boost::asio::ip::tcp::endpoint(
boost::asio::ip::address_v4::from_string(addr),
boost::asio::ip::address_v4::make_address_v4(addr),
port_num
));

Expand Down
4 changes: 2 additions & 2 deletions Chapter06/flat/09_tasks_processor_signals/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ class tasks_processor: public tp_timers::tasks_processor {
connection_ptr c( new connection_with_data(get_ios()) );

c->socket.connect(boost::asio::ip::tcp::endpoint(
boost::asio::ip::address_v4::from_string(addr),
boost::asio::ip::address_v4::make_address_v4(addr),
port_num
));

Expand Down Expand Up @@ -410,7 +410,7 @@ class tasks_processor: public tp_network_client::tasks_processor {
connection_ptr c( new connection_with_data(get_ios()) );

c->socket.connect(boost::asio::ip::tcp::endpoint(
boost::asio::ip::address_v4::from_string(addr),
boost::asio::ip::address_v4::make_address_v4(addr),
port_num
));

Expand Down
2 changes: 2 additions & 0 deletions Chapter08/06_tuple_to_string/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ void std_tuple_example();
#include <boost/fusion/include/vector.hpp>
#include <boost/fusion/adapted/boost_tuple.hpp>
#include <boost/fusion/adapted/std_pair.hpp>

#include <boost/array.hpp>
#include <boost/fusion/adapted/boost_array.hpp>

struct cat{};
Expand Down

0 comments on commit 851b818

Please sign in to comment.