Package dijjer.io.comm

Examples of dijjer.io.comm.RoutingTable$Pinger


  public static final String VERSION = "$Id: RoutingTableTest.java,v 1.9 2005/04/12 13:04:16 sanity Exp $";

  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));

  }
View Full Code Here


          + "<tr><td>URL</td><td>" + url + "</td></tr>" + "<tr><td>PARAMS</td><td>" + params + "</td></tr>"
          + "<tr><td>HEADERS</td><td>" + headers + "</td></tr>" + "</table>" + "</p>\n");
    }
    info.append(getFoundNewBuild());
    response.setPageField(INFO, info.toString());
    RoutingTable rt = RoutingTable.getRoutingTable();
    String localhost = rt.getPeer().getAddress().getHostName() + ":" + rt.getPeer().getPort();
    response.setPageField(EXTERNAL_ADDRESS, "<a href=" + HTTPServer.getHTTPServer().getURL() + ">" + localhost
        + "</a>");
    response.setPageField(CACHE_SIZE, String.valueOf(DataStore.getDataStore().getCacheSize()
        * Store.DATA_BLOCK_SIZE / (1024 * 1024)));
    response.setPageField(MAX_CACHE_SIZE, String.valueOf(DataStore.getDataStore().getMaxBlocks()
View Full Code Here

TOP

Related Classes of dijjer.io.comm.RoutingTable$Pinger

Copyright © 2018 www.massapicom. 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.