- Timestamp:
- Jul 30, 2009, 9:27:12 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.h
r5464 r5465 175 175 if(err) logging_warn("failed binding ipv6 socket"); 176 176 177 start_receive(); 177 start_receive_4(); 178 start_receive_6(); 178 179 } 179 180 … … 202 203 203 204 private: 204 void start_receive (){205 void start_receive_4(){ 205 206 socket_v4.async_receive_from( 206 207 boost::asio::buffer(recv_buffer_4), remote_endpoint_, … … 208 209 boost::asio::placeholders::error, 209 210 boost::asio::placeholders::bytes_transferred)); 210 211 } 212 213 void start_receive_6(){ 211 214 socket_v6.async_receive_from( 212 215 boost::asio::buffer(recv_buffer_6), remote_endpoint_, … … 224 227 logging_warn("failed receiving broadcast data: " << error.message()); 225 228 226 start_receive ();229 start_receive_4(); 227 230 } 228 231 … … 235 238 logging_warn("failed receiving broadcast data: " << error.message()); 236 239 237 start_receive ();240 start_receive_6(); 238 241 } 239 242 … … 268 271 if(error) 269 272 logging_warn("failed sending out message"); 270 271 } 272 273 } 273 274 }; 274 275 275 276 udp_server server; 276 277 277 }; 278 278
Note:
See TracChangeset
for help on using the changeset viewer.