basic implementation of packets

This commit is contained in:
subtly 2014-12-23 13:44:52 +01:00
parent cb6517e99e
commit 25a905b740

View File

@ -54,7 +54,6 @@ struct TestNodeTable: public NodeTable
void setup(std::vector<std::pair<KeyPair,unsigned>> const& _testNodes) void setup(std::vector<std::pair<KeyPair,unsigned>> const& _testNodes)
{ {
/// Phase 1 test: populate with pings
/// Phase 2 test: pre-populate *expected* ping-responses, send pings /// Phase 2 test: pre-populate *expected* ping-responses, send pings
bi::address ourIp = bi::address::from_string("127.0.0.1"); bi::address ourIp = bi::address::from_string("127.0.0.1");
@ -63,11 +62,6 @@ struct TestNodeTable: public NodeTable
for (auto& n: _testNodes) for (auto& n: _testNodes)
ping(bi::udp::endpoint(ourIp, n.second)); ping(bi::udp::endpoint(ourIp, n.second));
// wait 1ms between each send
// send PingNode for each s_bootstrapNodes
// wait until nodecount is s_testNodes.count()
} }
void reset() void reset()