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.

49 lignes
1.4 KiB

  1. #ifndef BTPD_POLICY_H
  2. #define BTPD_POLICY_H
  3. // policy_choke.c
  4. void choke_alg(struct torrent *tp);
  5. void next_optimistic(struct torrent *tp, struct peer *np);
  6. // policy_subr.c
  7. int piece_full(struct piece *pc);
  8. void piece_free(struct piece *pc);
  9. void cm_on_piece_unfull(struct piece *pc);
  10. void cm_on_piece(struct piece *pc);
  11. struct piece *cm_new_piece(struct torrent *tp, uint32_t index);
  12. struct piece *cm_find_piece(struct torrent *tp, uint32_t index);
  13. unsigned cm_piece_assign_requests(struct piece *pc, struct peer *p);
  14. unsigned cm_assign_requests(struct peer *p);
  15. void cm_assign_requests_eg(struct peer *p);
  16. void cm_unassign_requests(struct peer *p);
  17. void cm_unassign_requests_eg(struct peer *p);
  18. void cm_piece_reorder_eg(struct piece *pc);
  19. // policy_if.c
  20. void cm_by_second(struct torrent *tp);
  21. void cm_on_new_peer(struct peer *p);
  22. void cm_on_lost_peer(struct peer *p);
  23. void cm_on_choke(struct peer *p);
  24. void cm_on_unchoke(struct peer *p);
  25. void cm_on_upload(struct peer *p);
  26. void cm_on_unupload(struct peer *p);
  27. void cm_on_interest(struct peer *p);
  28. void cm_on_uninterest(struct peer *p);
  29. void cm_on_download(struct peer *p);
  30. void cm_on_undownload(struct peer *p);
  31. void cm_on_piece_ann(struct peer *p, uint32_t index);
  32. void cm_on_block(struct peer *p, struct block_request *req,
  33. uint32_t index, uint32_t begin, uint32_t length, const char *data);
  34. void cm_on_ok_piece(struct piece *pc);
  35. void cm_on_bad_piece(struct piece *pc);
  36. #endif