File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -97,9 +97,14 @@ struct Client {
97
97
socket_.set_option (udp::socket::reuse_address (true ));
98
98
socket_.bind (listen_endpoint_);
99
99
socket_.set_option (
100
+ #if BOOST_VERSION < 108700
101
+ multicast::join_group (address::from_string (g_sap_address).to_v4 (),
102
+ address::from_string (g_daemon_address).to_v4 ())
103
+ #else
100
104
multicast::join_group (make_address (g_sap_address).to_v4 (),
101
- make_address (g_daemon_address).to_v4 ()));
102
-
105
+ make_address (g_daemon_address).to_v4 ())
106
+ #endif
107
+ );
103
108
cli_.set_connection_timeout (30 );
104
109
cli_.set_read_timeout (30 );
105
110
cli_.set_write_timeout (30 );
@@ -362,10 +367,18 @@ struct Client {
362
367
363
368
private:
364
369
httplib::Client cli_{g_daemon_address, g_daemon_port};
370
+ #if BOOST_VERSION < 108700
371
+ io_service io_service_;
372
+ #else
365
373
io_context io_service_;
374
+ #endif
366
375
udp::socket socket_{io_service_};
367
376
udp::endpoint listen_endpoint_{
377
+ #if BOOST_VERSION < 108700
378
+ udp::endpoint (address::from_string (" 0.0.0.0" ), g_sap_port)};
379
+ #else
368
380
udp::endpoint (make_address (" 0.0.0.0" ), g_sap_port)};
381
+ #endif
369
382
};
370
383
371
384
BOOST_AUTO_TEST_CASE (is_alive) {
You can’t perform that action at this time.
0 commit comments