Solved

Chat Room Setup

Posted on 1998-08-06
6
262 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 2

Accepted Solution

by:
gravity earned 100 total points
Comment Utility
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
Comment Utility
Thanks for the infomation, but I don't think I want to do that stuff.
0
 
LVL 2

Expert Comment

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

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Read about why website design really matters in today's demanding market.
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

744 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now