adapting bit torrent protocol on wireless sensor networks