Package freenet.support.io

Examples of freenet.support.io.NativeThread.start()


    NativeThread plug = new NativeThread(useless, "Plug", NativeThread.MAX_PRIORITY, false);
    // Not daemon, but doesn't do anything.
    // Keeps the JVM alive.
    // DO NOT do anything in the plug thread, if you do you risk the EvilJVMBug.
    plug.setDaemon(false);
    plug.start();

    // Initialize SSL
    SubConfig sslConfig = new SubConfig("ssl", cfg);
    SSL.init(sslConfig);
View Full Code Here


      freenet.crypt.Util.mdProviders.size();
      freenet.crypt.ciphers.Rijndael.getProviderName();

      File seed = userDir.file("prng.seed");
      FileUtil.setOwnerRW(seed);
      entropyGatheringThread.start();
      // Can block.
      this.random = new Yarrow(seed);
      DiffieHellman.init(random);
      // http://bugs.sun.com/view_bug.do;jsessionid=ff625daf459fdffffffffcd54f1c775299e0?bug_id=4705093
      // This might block on /dev/random while doing new SecureRandom(). Once it's created, it won't block.
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.