updated python binding docs
This commit is contained in:
parent
5b75d4d1b8
commit
1f317900f4
|
@ -51,7 +51,7 @@ directory and invoke <tt class="docutils literal"><span class="pre">bjam</span><
|
|||
build variants, see <a class="reference" href="building.html#step-3-building-libtorrent">libtorrent build options</a>.</p>
|
||||
<p>For example:</p>
|
||||
<pre class="literal-block">
|
||||
$ bjam dht-support=on release link=static
|
||||
$ bjam dht-support=on boost=source release link=static
|
||||
</pre>
|
||||
<p>On Mac OS X, this will produce the following python module:</p>
|
||||
<pre class="literal-block">
|
||||
|
@ -75,7 +75,7 @@ ses.listen_on(6881, 6891)
|
|||
e = lt.bdecode(open("test.torrent", 'rb').read())
|
||||
info = lt.torrent_info(e)
|
||||
|
||||
h = ses.add_torrent(info, "./", compact_mode = True)
|
||||
h = ses.add_torrent(info, "./", storage_mode=storage_mode_sparse)
|
||||
|
||||
while (not h.is_seed()):
|
||||
s = h.status()
|
||||
|
|
|
@ -43,7 +43,7 @@ build variants, see `libtorrent build options`_.
|
|||
|
||||
For example::
|
||||
|
||||
$ bjam dht-support=on release link=static
|
||||
$ bjam dht-support=on boost=source release link=static
|
||||
|
||||
On Mac OS X, this will produce the following python module::
|
||||
|
||||
|
@ -71,7 +71,7 @@ A very simple example usage of the module would be something like this::
|
|||
e = lt.bdecode(open("test.torrent", 'rb').read())
|
||||
info = lt.torrent_info(e)
|
||||
|
||||
h = ses.add_torrent(info, "./", compact_mode = True)
|
||||
h = ses.add_torrent(info, "./", storage_mode=storage_mode_sparse)
|
||||
|
||||
while (not h.is_seed()):
|
||||
s = h.status()
|
||||
|
|
Loading…
Reference in New Issue