forked from premiere/premiere-libtorrent
update documentation
This commit is contained in:
parent
c8bf782bd0
commit
4565a2f375
|
@ -290,11 +290,8 @@ code to implement a simple bittorrent client::
|
|||
// usage a.out [torrent-file]
|
||||
int main(int argc, char* argv[]) try
|
||||
{
|
||||
using namespace libtorrent;
|
||||
|
||||
session s;
|
||||
s.listen_on(std::make_pair(6881, 6889));
|
||||
add_torrent_params p;
|
||||
lt::session s;
|
||||
lt::add_torrent_params p;
|
||||
p.save_path = "./";
|
||||
p.ti = new torrent_info(argv[1]);
|
||||
s.add_torrent(p);
|
||||
|
@ -322,10 +319,10 @@ portability
|
|||
|
||||
libtorrent runs on most major operating systems, including Windows,
|
||||
MacOS X, Linux, BSD and Solaris.
|
||||
It uses Boost.Thread, Boost.Filesystem, Boost.Date_time and various other
|
||||
boost libraries. At least version 1.46.1 of boost is required.
|
||||
It uses Boost.Thread, Boost.Asio, Boost.Chrono, Boost.Random, Boost.Date_time
|
||||
and various other boost libraries. At least version 1.49 of boost is required.
|
||||
|
||||
libtorrent uses asio, hence it will take full advantage of high performance
|
||||
Since libtorrent uses Boost.Asio it will take full advantage of high performance
|
||||
network APIs on the most popular platforms. I/O completion ports on windows,
|
||||
epoll on linux and kqueue on MacOS X and BSD.
|
||||
|
||||
|
|
Loading…
Reference in New Issue