Ejemplo n.º 1
0
 PacketSender(Node node) {
   this.node = node;
   myThread =
       new NativeThread(
           this,
           "PacketSender thread for " + node.getDarknetPortNumber(),
           NativeThread.MAX_PRIORITY,
           false);
   myThread.setDaemon(true);
   localRandom = node.createRandom();
 }
Ejemplo n.º 2
0
 void start(NodeStats stats) {
   this.stats = stats;
   Logger.normal(this, "Starting PacketSender");
   System.out.println("Starting PacketSender");
   myThread.start();
 }