예제 #1
0
 public MessageHandlingTests()
 {
     listener = new TestListener();
     node     = new Node(NodeId.Create(), new IPEndPoint(IPAddress.Any, 0));
     engine   = new DhtEngine(listener);
     //engine.Add(node);
 }
예제 #2
0
 public void Setup()
 {
     listener = new TestListener();
     node     = new Node(NodeId.Create(), new IPEndPoint(IPAddress.Any, 0));
     engine   = new DhtEngine(listener);
     //engine.Add(node);
 }
예제 #3
0
 public TaskTests()
 {
     counter  = 0;
     listener = new TestListener();
     engine   = new DhtEngine(listener);
     node     = new Node(NodeId.Create(), new IPEndPoint(IPAddress.Any, 4));
     handle   = new ManualResetEvent(false);
 }