I'm just wondering whether using socket is the only way to build communication mechanism of a p2p system? Thank you in advance.

I think Sockets is the main one.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.