Adapted Ijacket and Ijacket client for p2p