Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stallion-x/bittorrent-emu

An emulation of BitTorrent by Win32 Socket
https://github.com/stallion-x/bittorrent-emu

bittorrent bt cpp network socket socket-programming win32 windows

Last synced: about 2 months ago
JSON representation

An emulation of BitTorrent by Win32 Socket

Awesome Lists containing this project

README

        

# BitTorrent-Emu
An emulation of BitTorrent by Win32 Socket.

模拟实现BT传输过程(包含Tracker服务器)

初版实现,之后有空会重构增加重传机制

再之后会尝试在此基础上向标准BT协议栈靠拢

初次使用需要修改宏定义的路径

每个Peer代码逻辑均一样,实现对等P2P连接

每个Peer可以自由选择进行做种或者下载

下载时会先读取.torrent文件,拿到Tracker的网络地址,再逐个文件块请求Tracker服务器,从Tracker获取对应文件块所在服务器的网络地址,并从对应地址下载对应文件块,下载全部完成后进行合并