A clone of btpd with my configuration changes.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

README 4.8 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. The BitTorrent Protocol Daemon
  2. README
  3. Contents
  4. 1 Introduction
  5. 1.a What is btpd?
  6. 1.b The programs
  7. 2. Using btpd
  8. 2.a Typical usage pattern
  9. 2.b Starting btpd
  10. 2.c Sharing torrents
  11. 2.d Information on active torrents
  12. 2.e Murder
  13. 3 Building
  14. 3.a Requirements
  15. 3.b Standard build
  16. 1. Introduction
  17. 1.a What is btpd?
  18. btpd is a BitTorrent client consisting of a daemon and client commands,
  19. which can be used to read and/or manipulate the daemon state. The daemon
  20. is capable of running several torrents simultaneously and only uses one
  21. tcp port. It's fairly low on resource usage and should be perfect for a
  22. torrent distribution site. Efficient downloads and ease of use makes this
  23. client a good choice for the casual user as well.
  24. 1.b The programs
  25. btpd consists of the following programs:
  26. * btpd - The BitTorrent client.
  27. * btcli - Command line interface to btpd.
  28. * btinfo - Shows information from a torrent file.
  29. All programs accept the helpful "--help" option.
  30. 2. Using btpd
  31. 2.a Typical usage pattern
  32. When you use this client you will mostly use the btcli tool. With btcli
  33. you can tell btpd which torrents to run, list the active torrents and
  34. display stats for them. You can even tell btpd to exit if you're so in-
  35. clined. Before you can use this tool however, btpd must be started. The
  36. typical usage pattern goes something like this:
  37. 1. start btpd.
  38. 2. add one or more torrents to btpd.
  39. 3. any of many different actions: display stats, add more or remove
  40. torrents, go drink coffe, etc...
  41. 666. tell btpd to exit.
  42. 2.b Starting btpd
  43. NOTE: As described in the section above, you should only need one instance
  44. of btpd regardless of how many torrents you want to share.
  45. To start btpd with default settings you only need to run it. There are
  46. however, many useful options you may want to use. To see a full list run
  47. 'btpd --help'.
  48. btdp will store information and write its log in $HOME/.btpd. Therefore
  49. it needs to be able to write there during its execution. You can specify
  50. another directory via the '-d' option or the $BTPD_HOME variable.
  51. I recommend specifiying the maximum number of uploads. BitTorrent employs a
  52. tit for tat algorithm, so uploading at good rates allows for downloading.
  53. Try to find a balance between uploads/outgoing bandwidth and the number of
  54. active torrents.
  55. 2.c Sharing torrents
  56. To make btpd start leeching or seeding a torrent you use the 'btcli add'
  57. command. In similar vein the 'btcli del' command will make btpd stop shar-
  58. ing the torrent.
  59. The first time you add a torrent you must specify where btpd should put
  60. its content. This is not needed on subsequent add's of the same torrent
  61. since btpd stores that information. Of course, if you move the content
  62. directory between runs you need to specify it again.
  63. Examples:
  64. Add foo.torrent and download its content to the foo.content directory.
  65. # btcli add -d foo.content foo.torrent
  66. Stop sharing foo.torrent.
  67. # btcli del foo.torrent
  68. Start it again. Notice the absence of '-d foo.content'.
  69. # btcli add foo.torrent
  70. Add bar.torrent and place the content like the mainline client.
  71. # btcli add --topdir -d . bar.torrent
  72. 2.d Information on active torrents
  73. In case you're not happy only guessing about your torrents progress, or
  74. can't remember which torrents are active, you may want to take a look at
  75. the 'btcli stat' and 'btcli list' commands. 'btcli list' will, not totally
  76. surprisingly, display a list of active torrents. 'btcli stat' will display
  77. information such as rates and MBs uploaded and downloaded. See
  78. 'btcli --help stat' to make sense of it.
  79. Each line 'btcli list' shows is prefixed by either '+', '-', 'S' or 'L'.
  80. + means the torrent hasn't been started yet, because btpd is checking
  81. the content of either this or another torrent with '+'.
  82. - means the torrent is being stopped.
  83. S means btpd is seeding the torrent.
  84. L means btpd is leeching the torrent.
  85. 2.e Murder
  86. Too slay the innocent btpd process issue the command 'btcli kill'.
  87. Horrible user!
  88. 3. Building
  89. 3.a Requirements
  90. You should have a *BSD, Linux or sufficiently similar system with pthread
  91. support.
  92. Make sure you have recent versions of the following software:
  93. * curl - Get at <URL:http://curl.haxx.se/>
  94. * openssl - Get at <URL:http://www.openssl.org/>
  95. * libevent - Get at <URL:http://www.monkey.org/~provos/libevent/>
  96. You also need a c99 compiler. A non antique GCC should do.
  97. 3.b Standard build
  98. # ./configure
  99. # make
  100. # make install
  101. See './configure --help' for options if the above fails or you're overcome
  102. by curiousity.