Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how do i create chatrooms

 
Stanley George
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i have created a chat module using Sockets (too easy)
i have now to make provisions for multiple chatrooms..how do i go about it? can anyone please give me a direction?
also can anyone tell me where i can find information on IP multicasting. does java support this in RTP? if so how do i implement it for audio conferencing.
 
rani bedi
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for IP multicasting check the URLs
http://www.cis.ohio-state.edu/~jain/refs/ipm_refs.htm
http://www.networkcomputing.com/1010/1010ws1.html
 
Sarath Mohan
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Stanley,
Creation of Chat room is also pretty easy.
Use a suitable data structure say Vector or Hash table.
For example you can create a vector which will contain all users
registered to a particular room.
All these features should be done in server side.
While chatting user and server should pass room information also.
 
Sean MacLean
author
Ranch Hand
Posts: 621
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found this (though older) article to be a good starting point for a simple chat application. Have a look at the future installments as well.
http://www.javaworld.com/javaworld/jw-02-1997/jw-02-step.html
Sean
 
Stanley George
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanx parmeet
the links u provided overwhelm me..very exhaustive i must say
i am going thru it. i would also like some java-specific info too.
binu ..u were of great help. but will this not bring load on one server program? can u suggest some way that i can distribute the load to clients starting thir own chatrooms?
sean, thank you for your link. its a good one, going by the detailed way in which they have explained everything..
also can anyone suggest how i can create chatroom equivalen for voice chat? i have the module ready ..but how can i send sound packets to ppl in specific chatrooms?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic