Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

how do i create chatrooms

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 358
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 621
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic