Basic bittorrent client written in c