public void Setup()
 {
     listener = new TestListener();
     node = new Node(NodeId.Create(), new IPEndPoint(IPAddress.Any, 0));
     engine = new DhtEngine(listener);
     //engine.Add(node);
 }
 public void Setup()
 {
     listener = new TestListener();
     node     = new Node(NodeId.Create(), new IPEndPoint(IPAddress.Any, 0));
     engine   = new DhtEngine(listener);
     //engine.Add(node);
 }
Example #3
0
 public void Setup()
 {
     counter  = 0;
     listener = new TestListener();
     engine   = new DhtEngine(listener);
     node     = new Node(NodeId.Create(), new IPEndPoint(IPAddress.Any, 4));
 }
Example #4
0
 public void Setup()
 {
     counter = 0;
     listener = new TestListener();
     engine = new DhtEngine(listener);
     node = new Node(NodeId.Create(), new IPEndPoint(IPAddress.Any, 4));
     handle = new ManualResetEvent(false);
 }
Example #5
0
        public async Task Setup()
        {
            counter  = 0;
            listener = new TestListener();
            engine   = new DhtEngine();
            await engine.SetListenerAsync(listener);

            node = new Node(NodeId.Create(), new IPEndPoint(IPAddress.Any, 4));
        }