Solved

Chat Room Setup

Posted on 1998-08-06
6
334 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

726 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