P2P chat client and protocol

Hi everybody, I am a newbie with P2P, so bear with me if I ask dumb. I have been doing some research but P2P part is still not clear to me. I want to implement a chat client that works as P2P (text chat) in Java and my own protocol. As I understand Jxta defines a set of protocols that developers can use to build p2p application , but I have to create and use my own protocol for exchanging chat messages. Am I required to implement all six of Jxta protocols? Is there any open source P2P chat client and protocol? Any pointers on how to do this would be very helpful.

[576 byte] By [Bojsaa] at [2007-10-3 9:08:49]
# 1

JXTA is mainly for discovery and session setup as well as mapping.

As you want to create your own communications protocol, it would b best for you to start from scratch, and not use another API.

You can create a client application that contains a server and a socket.

The socket allows you to connect to the remote user, while the server allows you to accept connections from other users. Anytime the two clients are running and attempt to connect to either one, they can setup a session.

How your client will send/receieve messages is up to you - that would be your protocol.

watertownjordana at 2007-7-15 4:20:34 > top of Java-index,Archived Forums,Socket Programming...
# 2
XMPP is a multi-service protocol for IM that would allow you to interface your chat service with AOL, Yahoo, MSN, etc.
watertownjordana at 2007-7-15 4:20:34 > top of Java-index,Archived Forums,Socket Programming...