Package com.torrent4j.storage

Examples of com.torrent4j.storage.InMemoryTorrentStorage


   * @throws IOException
   * @throws InterruptedException
   */
  public static void main(String[] args) throws IOException, InterruptedException {
    final TorrentController controller = new TorrentController(
        new PeerWireProtocol(), new InMemoryTorrentStorage());
    controller.start(1234);
   
    final Torrent torrent = Torrent.load(Paths.get("test.torrent"));
    System.out.println("Torrent hash is " + torrent.getHash().getString());

View Full Code Here

TOP

Related Classes of com.torrent4j.storage.InMemoryTorrentStorage

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.