Package com.torrent4j.storage

Examples of com.torrent4j.storage.TorrentStorage


  }

  @Override
  public void blockRequested(Torrent torrent, TorrentPieceBlock block,
      TorrentPeer peer) {
    final TorrentStorage storage = torrent.getController().getStorage();
    try {
      peer.sendBlock(block,
          storage.read(torrent, block.getTorrentRange()));
    } catch (IOException e) {
      peer.disconnect();
      return;
    }
  }
View Full Code Here

TOP

Related Classes of com.torrent4j.storage.TorrentStorage

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.