Package net.tomp2p.dht

Examples of net.tomp2p.dht.PeerDHT.send()


  public static void main(String[] args) throws IOException, InterruptedException {
    if(args.length == 0) {
      final PeerDHT peer = new PeerBuilderDHT(new PeerBuilder(Number160.createHash("master")).ports(1234).start()).start();

          while(true){
              peer.send(Number160.createHash("client")).object("ping").start();
              Thread.sleep(1000);
          }
    } else {
      final Peer peer = new PeerBuilder(Number160.createHash("client")).ports(1235).start();
            List<PeerAddress> bootstrap = new ArrayList<PeerAddress>();
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.