wood burning stoves 2.0*
The moose likes Java in General and the fly likes how do i create chatrooms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how do i create chatrooms" Watch "how do i create chatrooms" New topic

how do i create chatrooms

Stanley George
Ranch Hand

Joined: Dec 09, 2000
Posts: 55
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

Joined: Feb 06, 2001
Posts: 358
for IP multicasting check the URLs

Cheers,<br />Rani<br />SCJP, SCWCD, SCBCD
Sarath Mohan
Ranch Hand

Joined: Mar 17, 2001
Posts: 213
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.

Sarath Mohan
Sean MacLean
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
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.
Stanley George
Ranch Hand

Joined: Dec 09, 2000
Posts: 55
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?
subject: how do i create chatrooms
Similar Threads
Validating email in javascript?
java chat problems
Trim in java
Closing the child window should trigger some action in Parent window.
Converting Swing appl. to .exe file