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(); }
void start(NodeStats stats) { this.stats = stats; Logger.normal(this, "Starting PacketSender"); System.out.println("Starting PacketSender"); myThread.start(); }