Impressive work. Did you implement the bittorrent protocol from scratch? which BEP specifically?

https://www.bittorrent.org/beps/bep_0000.html

No , I used https://github.com/anacrolix/torrent to build exatorrent