Solved

Chat Room Setup

Posted on 1998-08-06
6
295 Views
Last Modified: 2013-12-25
I would like to know how is a chat room set up on the internet. Is it done so by using programming langanges like
CGI? Can it be done using Java, etc? Can anyone kindly advice me on that. Thankss
0
Comment
Question by:khan_yew
  • 2
  • 2
  • 2
6 Comments
 
LVL 2

Expert Comment

by:SirCaleb
ID: 1858846
CGI would be an awkward way of doing so....Java is the most efficient way to do it.  There is a Java chat room already out there for use.  It does have some advertising on it but have a look anyway...maybe this can save you the hassle of having to totally re-write one.  And you can put this on ANY WEB PAGE!

Here is the place where you can get the chat room:
http://www.parachat.com/

This is that Java Chat on somebody's webpage:
http://members.xoom.com/RipFire/chat.html

Hope this helps you.
0
 

Author Comment

by:khan_yew
ID: 1858847
Yes, I know that Chat Setup can be gotten free on the Internet, as I have found another web site at www.beseen.com that gives free chat room. However, I want to know the way to write the code, etc. any ideas?
0
 
LVL 2

Expert Comment

by:SirCaleb
ID: 1858848
You could try downloading that Java Applet from Parachat and maybe "decompile" it, if that is possible...I'm not sure if you can "decompile" Java...not my specialty  :-)
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 2

Accepted Solution

by:
gravity earned 100 total points
ID: 1858849
To write a chat room, you need two parts: The client, which is the end which the user types into, displays and everything, and the server, which handles all the requests, and sends the messages to the client.
Java would be a good start for the client end, and although you could write a server in Java, I would be more inclined to write the server in C++.
Now comes the tricky part... connecting them, but if you use the Java Develpment Kit (JDK), this comes with include files that can handle this.
The server is the more complicated part of the two. It must have an open or closed file status, to which the client sends the chat messages. Picture this:
Client one sends a message to the server at the same time as client two does. Result ends up with garbled text being returned to the client, as the two messages are combined.
Solution:
Set up a locked/unlocked status for your server that puts the clients request into a que as each client asks for the message to be sent.

I hope this gives you a brief overview of the sheer complexities of chat rooms.

Gravity.
0
 

Author Comment

by:khan_yew
ID: 1858850
Thanks for the infomation, but I don't think I want to do that stuff.
0
 
LVL 2

Expert Comment

by:gravity
ID: 1858851
I thought that I would want to make a chat room as well once... then I realised what was involved...

0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question