Package net.tomp2p.connection

Examples of net.tomp2p.connection.Bindings.addAddress()


    try {
      Random r = new Random(42L);
      // peer.getP2PConfiguration().setBehindFirewall(true);
      Bindings b = new Bindings();
      // b.addInterface("eth0");
      b.addAddress(InetAddress.getByName(addr));
      // b.addAddress(InetAddress.getByAddress(addr));
      peer = new PeerBuilderDHT(new PeerBuilder(new Number160(r)).bindings(b).ports(serverPort).start()).start();
      System.out.println("peer started.");
      for (;;) {
        Thread.sleep(5000);
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.