| 17 | { |
| 18 | |
| 19 | void connect_all ( |
| 20 | map_id_to_con& cons, |
| 21 | const std::vector<network_address>& hosts, |
| 22 | unsigned long node_id |
| 23 | ) |
| 24 | { |
| 25 | cons.clear(); |
| 26 | for (unsigned long i = 0; i < hosts.size(); ++i) |
| 27 | { |
| 28 | std::unique_ptr<bsp_con> con(new bsp_con(hosts[i])); |
| 29 | dlib::serialize(node_id, con->stream); // tell the other end our node_id |
| 30 | unsigned long id = i+1; |
| 31 | cons.add(id, con); |
| 32 | } |
| 33 | } |
| 34 | |
| 35 | void connect_all_hostinfo ( |
| 36 | map_id_to_con& cons, |
no test coverage detected