Multi-Channel Peer-To-Peer Streaming Systems As Resource Allocation Problems