コード例 #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);
 }