Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/stallion-x/bittorrent-emu
- Owner: Stallion-X
- License: mit
- Created: 2023-10-14T16:44:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-16T17:47:06.000Z (about 1 year ago)
- Last Synced: 2024-04-16T17:11:31.149Z (9 months ago)
- Topics: bittorrent, bt, cpp, network, socket, socket-programming, win32, windows
- Language: C++
- Homepage:
- Size: 69.4 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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获取对应文件块所在服务器的网络地址,并从对应地址下载对应文件块,下载全部完成后进行合并