Clone of https://github.com/turn/ttorrent