BitTorrent client in C