libtorrent API 文档(中文版)
session
session()
~session()
pause() resume() is_paused()
void pause();
void resume();
bool is_pause() const;
abort()
session_proxy abort()
add_torrent()
remove_torrent()
find_torrent() get torrents()
set_upload_rate_limit()
set_download_rate_limit() upload_rate_limit()
download_rate_limit()
num_uploads() num_connections()
set_max_half_open_connetions()
load_state() state()
set_ip_filter()
get_ip_filter()
status()
get_cache_status()
is_listening() listen_port() listen_on()
pop_alert() set_alert_mask() wait_for_alert() set_
add_extension()
set_settings() set_pe_settings()
set_peer_proxy() set_web_seed_proxy() set_tracker_
peer_proxy() web_seed_proxy() tracker_proxy() dht_
start_dht() stop_dht() set_dht_settings() dht_stat
start_lsd() stop_lsd()
start_upnp() stop_upnp()
start_natpmp() stop_natpmp()
entry
integer() string() list() dict() type()
operator[]
find_key()
torrent_info
torrent_info()
files() orig_files()
rename_file()
begin_files() end_files() rbegin_files() rend_file
num_files() file_at()
map_block()
url_seeds() add_url_seed()
total_size() piece_length() piece_size() num_piece
hash_for_piece() hash_for_piece_ptr() info_hash()
name() comment() creation_date() creator()
priv()
nodes()
add_node()
metadata() metadata_size()
torrent_handle
piece_priority() prioritize_pieces() piece_priorit
file_priority() prioritize_files() file_priorities
file_progress()
save_path()
move_storage()
rename_file()
get_storage_impl()
force_reannounce()
scrape_tracker()
connect_peer()
name()
set_upload_limit() set_download_limit() upload_lim
set_sequential_download() is_sequential_download()
set_peer_upload_limit() set_peer_download_limit()
pause() resume() is_paused()
force_recheck()
clear_error()
resolve_countries()
is_seed()
is_auto_managed() auto_managed()
has_metadata()
set_tracker_login()
trackers() replace_trackers()
add_url_seed() remove_url_seed() url_seeds()
queue_position() queue_position_up() queue_positio
use_interface()
info_hash()
set_max_uploads() set_max_connections()
save_resume_data()
get_download_queue()
get_peer_info()
get_torrent_info()
is_valid()
torrent_status
peer_info
session_settings
pe_settings
proxy_settings
ip_filter
ip_filter()
access()
export_filter()
big_number
bitfield
hasher
fingerprint
UPnP and NAT-PMP
add_mapping
delete_mapping
router_model()
free functions
identify_client()
client_fingerprint()
bdecode() bencode()
add_magnet_uri()
make_magnet_uri()
alerts
error_notification
*激活报告错误的警告.包括
*·服务器错误
*·服务器警告
*文件错误
*恢复数据失败
*网页种子错误
*.torrent文件错误
*监听套接字错误
*端口映射错误
peer_notification
当对等点发送了非法请求,禁用,或没有上传或者下载时抛警告
port_mapping_notification
为端口映射事件而警告。例如NAT-PMP和UpnP
storage_notification
为存储事情而警告。存储的文件错误和同步错误,文件改名等。
tracker_notification
使所有的服务器事情激活。包括通知服务器,接收响应,警告和错误。
debug_notification
当对等点连接或者断开时的低级别警告
status_notification
当一个任务或者事务改变状态时激活警告
progress_notification
当块被请求或者完成时,就会警告。当片完成时也会警告
ip_block_notification
当一个对等眯被ip 块阻止或者端口阻止时会产生警告
performance_warning
当一些可能限制上传或者下载速率的限制生效时,会产行此警告。
all_categories
完全比特模,表示所有的激活目录。
external_ip_alert
listen_failed_alert
portmap_error_alert
portmap_alert
file_error_alert
file_renamed_alert
file_rename_failed_alert
tracker_announce_alert
tracker_error_alert
tracker_reply_alert
dht_reply_alert
tracker_warning_alert
scrape_reply_alert
scrape_failed_alert
url_seed_alert
hash_failed_alert
peer_ban_alert
peer_error_alert
invalid_request_alert
torrent_finished_alert
performance_alert
metadata_failed_alert
metadata_received_alert
fastresume_rejected_alert
peer_blocked_alert
storage_moved_alert
storage_moved_failed_alert
torrent_paused_alert
torrent_resumed_alert
save_resume_data_failed_alert
dispatcher
exceptions
invalid_handle
duplicate_torrent
invalid_encoding
type_error
invalid_torrent_file
storage_interface
initialize()
has_any_file()
read()
write()
move_storage()
verify_resume_data()
write_resume_data()
move_slot()
swap_slots()
swap_slots3()
hash_for_slot()
rename_file()
release_files()
delete_files()
magnet links
queuing
downloading
fast resume
file format
threads
storage allocation
sparse allocation
full allocation
compact allocation
extensions
metadata from peers
HTTP seeding
filename checks
acknowledgments