Solved

Chat Room Setup

Posted on 1998-08-06
6
318 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

 
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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
tutorial for ebay api 3 78
what are list of ebay api errors 1 34
need help with share buttons 11 69
Show MP4 file and close (HTA) 3 22
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

749 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