MCPcopy Create free account
hub / github.com/davisking/dlib / connect_all

Function connect_all

dlib/bsp/bsp.cpp:19–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers 1

bsp_connectFunction · 0.85

Calls 4

serializeFunction · 0.70
clearMethod · 0.45
sizeMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected