Coder Social home page Coder Social logo

torrentfs's Introduction

Independent HTTP Service for file seeding

Server running

CortexFoundation#216

Seeding or Sharing

CortexFoundation#224

P2P file system of cortex full node

image

Import

go get github.com/CortexFoundation/torrentfs

Build

https://github.com/CortexFoundation/torrentfs.git
cd torrentfs
make

How to test your network for torrent ?

./build/bin/torrent download 'ih:6b75cc1354495ec763a6b295ee407ea864a0c292'
./build/bin/torrent download 'ih:b2f5b0036877be22c6101bdfa5f2c7927fc35ef8'
./build/bin/torrent download 'ih:5a49fed84aaf368cbf472cc06e42f93a93d92db5'
./build/bin/torrent download 'ih:1f1706fa53ce0723ba1c577418b222acbfa5a200'
./build/bin/torrent download 'ih:3f1f6c007e8da3e16f7c3378a20a746e70f1c2b0'

downloaded ALL the torrents !!!!!!!!!!!!!!!!!!!

How to use

cd build/bin
mkdir -p mnt/0803be8fc7309d155dfcee65a92a6254bd55a3d2
echo "Hello torrent" > mnt/0803be8fc7309d155dfcee65a92a6254bd55a3d2/data

Create torrent file

./torrent-create mnt/0803be8fc7309d155dfcee65a92a6254bd55a3d2/data > mnt/0803be8fc7309d155dfcee65a92a6254bd55a3d2/torrent

Load info hash from torrent file

./torrent-magnet < mnt/0803be8fc7309d155dfcee65a92a6254bd55a3d2/torrent
tree mnt
0803be8fc7309d155dfcee65a92a6254bd55a3d2
├── data
└── torrent

Seed file to dht

./seeding -dataDir=mnt

Download file

./torrent download 'infohash:0803be8fc7309d155dfcee65a92a6254bd55a3d2'
ls -alt data && md5sum data && cat data

Special thanks

Anacrolix BitTorrent client package and utilities

torrentfs's People

Contributors

ucwong avatar dhunterao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.