Hi there, thanx everyone who contributed last time. I got a simple way to make the server chat with a connected client.
But the problems now are:
1. how do i get the know of the other users who are online.
2. how do i get get clients communicate independently of the server.
3. how do i maintain the list of the users in a given application

Anyway, am trying to read JXTA by Brendon J Wilson. Am i on the right track?

Recommended Answers

All 5 Replies

1) no easy way, May not be possible in the general case.
2) send each client the IP address of the other clients it wants to communicate with.
The clients will need code to be able to act as servers for other clients to connect to them.
3) use a collection of some sort

1/2 If they are all on the same subnet youy may be able to use UDP broadcasts, otherwize you will need a shared server of some sort.

So am I off topic if am reading JXTA?

Sorry, I have experience of JXTA, so I can't answer that.

JXTA must provide the server that does what is needed.

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.