Examples of TorrentPeerTrafficControl


Examples of com.torrent4j.model.peer.TorrentPeerTrafficControl

  }

  private void reconfigure() {
    if (peer == null)
      return;
    final TorrentPeerTrafficControl peerTraffic = peer.getTrafficControl();
    long readLimit = peerTraffic.getDownloadSpeedLimit();
    long writeLimit = peerTraffic.getUploadSpeedLimit();
    if (readLimit != this.readLimit || writeLimit != this.writeLimit) {
      this.writeLimit = writeLimit;
      this.readLimit = readLimit;
      configure(writeLimit, readLimit);
    }
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.