Optimized P2P streaming for wireless distributed networks