Examples of joinSeed()


Examples of dijjer.io.comm.RoutingTable.joinSeed()

  public void testRouting() throws Exception {

    TestUdpSocketManager usm = new TestUdpSocketManager(-1);
    RoutingTable rt = new RoutingTable(100, usm, null, false);
    Peer p = new Peer(InetAddress.getByAddress(new byte[]{5, 6, 7, 8}), 105);
    rt.joinSeed(p);   
    assertEquals(p, usm._sentPeers.get(0));

  }

  public static class TestUdpSocketManager extends UdpSocketManager {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.