コード例 #1
0
ファイル: main.py プロジェクト: zdexter/bittorrent-review
def leech(torrentfilename):
    client = BittorrentClient()
    torrent = client.add_torrent(torrentfilename)
    torrent.strategy = torrentstrategy.connect_and_ask_n_peers(15)
    loop(client)
コード例 #2
0
ファイル: main.py プロジェクト: zdexter/bittorrent-review
def leech(torrentfilename):
    client = BittorrentClient()
    torrent = client.add_torrent(torrentfilename)
    torrent.strategy = torrentstrategy.connect_and_ask_n_peers(15)
    loop(client)
コード例 #3
0
ファイル: main.py プロジェクト: zdexter/bittorrent-review
def seed(torrentfile, datafile):
    client = BittorrentClient(6882)
    torrent = client.add_torrent(torrentfile)
    torrent.load(datafile)
    torrent.tracker_update()
    loop(client)
コード例 #4
0
ファイル: main.py プロジェクト: zdexter/bittorrent-review
def seed(torrentfile, datafile):
    client = BittorrentClient(6882)
    torrent = client.add_torrent(torrentfile)
    torrent.load(datafile)
    torrent.tracker_update()
    loop(client)