Giter Club home page Giter Club logo

bittalk's Introduction

BitTalk

A migration of the BitTalk project from http://smalltalkhub.com/#!/~BitTalkDev/BitTalk/ developed by David Gracia Celemendi https://github.com/dgraciac/BitTalk

BitTalk

BitTorrent library for Pharo

Usage:

If I am the creator of the .torrent:

locationString:= '/path/to/directoryIWantToShare' .

metainfo:=BtMetainfo new 
				buildOn: locationString asFileReference 
				announce: 'udp://open.demonii.com:1337/announce' 
				pieceLength: (2 raisedTo: 14).

We need to upload this file to a torrent index

metainfo writeToFile: '/path/to/myMetainfo.torrent' asFileReference . 
metainfoString := '/path/to/myMetainfo.torrent'.

If I am not the creator of the .torrent:

locationString:='/path/to/destinationFolder'.

We have to download a file .torrent from a torrent index metainfoString:='/path/to/filesToShare.torrent'.

Common part:

torrent:= BtTorrent metainfoFileString: metainfoString locationString: locationString.

localPeer:= BtLocalPeer start.
localPeer addTorrent: torrent.
torrent start.

Maybe you want to stop a specific torrent only:

torrent stop.

To stop local peer (and all its torrents):

localPeer stop.

bittalk's People

Contributors

ducasse 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.