Erlang p2p client & Adaserver, Implementing torrent loginc.