Incomplete implementation of p2p client