Changeset 10653 for source/ariba/utility/bootstrap
- Timestamp:
- Jul 25, 2012, 11:41:36 AM (12 years ago)
- Location:
- source/ariba/utility/bootstrap/modules
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/bootstrap/modules/bluetoothsdp
- Property svn:mergeinfo changed (with no actual effect on merging)
-
source/ariba/utility/bootstrap/modules/periodicbroadcast
- Property svn:mergeinfo changed (with no actual effect on merging)
-
source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.h
r7532 r10653 55 55 #include "PeriodicBroadcastMessage.h" 56 56 57 //link-local 58 #include "ariba/utility/transport/tcpip/tcpip.hpp" 59 57 60 using std::map; 58 61 using std::string; 59 using std::cout;60 62 using boost::asio::ip::udp; 61 63 … … 296 298 { 297 299 udp::endpoint endp(udp::v6(), PeriodicBroadcast::serverport_v6); 298 endp.address( boost::asio::ip::address_v6::from_string("ff02::1") ); 299 socket_v6.send_to( boost::asio::buffer(pnt, len), endp, 0, err ); 300 if(err) logging_warn("failed sending message through ipv6 socket"); 300 boost::asio::ip::address_v6 all_nodes = boost::asio::ip::address_v6::from_string("ff02::1"); 301 302 // include all link-local interfaces 303 vector<uint64_t> scope_ids = ariba::transport::tcpip::get_interface_scope_ids(); 304 305 BOOST_FOREACH ( uint64_t id, scope_ids ) 306 { 307 all_nodes.scope_id(id); 308 endp.address( all_nodes ); 309 310 socket_v6.send_to( boost::asio::buffer(pnt, len), endp, 0, err ); 311 if(err) logging_warn("failed sending message through ipv6 socket"); 312 } 301 313 } 302 314 }
Note:
See TracChangeset
for help on using the changeset viewer.