This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Sockets and Internet Protocols and the fly likes Chat Application 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Chat Application 2" Watch "Chat Application 2" New topic
Author

Chat Application 2

Anthony Yulo
Ranch Hand

Joined: Feb 22, 2003
Posts: 52
I'm making a chat application using sockets..
as soon as a client is connected to the server the client is added to the list of online user...
So i have a server that has a list of all client and client information... My question is how do I pass the list of online users (the clients), to all clients(online users)? do i make a class that implements Serializable interface that and that encapsulate the online user information... and then it end it thru the ObjectInput/OutputStreams?
Wat?


it's alright, the gun isn't loaded... - hey
Raghav Mathur
Ranch Hand

Joined: Jan 12, 2001
Posts: 641
Hi
Try using Multicast Sockets.


Raghav.
 
Consider Paul's rocket mass heater.
 
subject: Chat Application 2