Pass 2 integrating node table. Pruning and merging old node lifecycle logic with new.

Begin moving node identification and authentication into Host so session can be directly-constructed with NodeInfo and is not created until after authentication.
Require session to be passed a valid node.
This commit is contained in:
subtly 2015-01-07 02:26:14 +01:00
parent 9a034e8998
commit 7f4ca13035
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ int peerTest(int argc, char** argv)
Host ph("Test", NetworkPreferences(listenPort)); Host ph("Test", NetworkPreferences(listenPort));
if (!remoteHost.empty()) if (!remoteHost.empty())
ph.connect(remoteHost, remotePort); ph.connect(NodeId(), remoteHost, remotePort);
for (int i = 0; ; ++i) for (int i = 0; ; ++i)
{ {

View File

@ -72,7 +72,7 @@ BOOST_AUTO_TEST_CASE(topic)
this_thread::sleep_for(chrono::milliseconds(500)); this_thread::sleep_for(chrono::milliseconds(500));
ph.start(); ph.start();
this_thread::sleep_for(chrono::milliseconds(500)); this_thread::sleep_for(chrono::milliseconds(500));
ph.connect("127.0.0.1", 50303); ph.connect(NodeId(), "127.0.0.1", 50303);
KeyPair us = KeyPair::create(); KeyPair us = KeyPair::create();
for (int i = 0; i < 10; ++i) for (int i = 0; i < 10; ++i)