Package ants.p2p.utils.indexer

Examples of ants.p2p.utils.indexer.DigestManager


        String messageID;
        try {
          Thread.sleep(2);
          messageID = wa.getIdent() + "@" +
              (new DigestManager()).getDigest(System.
                                              currentTimeMillis() + "");
          Thread.sleep(2);
        }
        catch (Exception e) {
          messageID = Math.floor(Math.random() * Math.pow(10, 32)) + "";
View Full Code Here


  public NetModificationAlert(ArrayList unreachablePeers){
    this.unreachablePeers = unreachablePeers;
    String id;
    try{
      id = (new DigestManager()).getDigest(System.
          currentTimeMillis() + "");
    }catch(Exception e){id = Math.floor(Math.random()*Math.pow(10,32))+"";}
    this.fillMessageProperties("","","",0,id);
  }
View Full Code Here

TOP

Related Classes of ants.p2p.utils.indexer.DigestManager

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.