Need suggestions on chat application
Moderator: General Moderators
- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact:
Need suggestions on chat application
Hi, I am thinking of making a chat application. I am wondering which programming language should I use to create the application. Please advise on the best language to be used and why do you think your preferred language should be used?
Do any of you know a good tutorial that would help me creating a chat application? I dont want ready-made chat application but I need some tutorial that would help me do it cos I want to program on my own.
I invite suggestions from you anything that would be relevant to the chat application development.
Thanks for your upcoming comments on the topic
Do any of you know a good tutorial that would help me creating a chat application? I dont want ready-made chat application but I need some tutorial that would help me do it cos I want to program on my own.
I invite suggestions from you anything that would be relevant to the chat application development.
Thanks for your upcoming comments on the topic
Just use a language that has the api/modules/extensions/classes ready for you. These days it's silly to write everything yourself, it's a matter of glue-ing the components together.
If you really want to be hardcore, lookup the relevant RFCS, i believe it starts at #1459 and start writing your own IRC class.
If you really want to be hardcore, lookup the relevant RFCS, i believe it starts at #1459 and start writing your own IRC class.
-
programmermatt
- Forum Commoner
- Posts: 65
- Joined: Tue Mar 15, 2005 5:03 pm
- Contact:
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Not sure it's AJAX or XMLhttp but http://www.e-messenger.net/ does MSN, AIM and Yahooprogrammermatt wrote:I don't think there are any good AJAX chats out there.
-
programmermatt
- Forum Commoner
- Posts: 65
- Joined: Tue Mar 15, 2005 5:03 pm
- Contact:
Should have specified, good OpenSource AJAX Chat implementations. And e-messenger does allow you to login to msn, aim (probably ICQ too) and Yahoo!, and I believe it to be an AJAX implementation, but not truly AJAX, but kinda. I have seen various other sites that allow you to login to messangers long before now and have seen many of them implement similar technologies to AJAX, but long before AJAX.d11wtq wrote:Not sure it's AJAX or XMLhttp but http://www.e-messenger.net/ does MSN, AIM and Yahooprogrammermatt wrote:I don't think there are any good AJAX chats out there.
Anyway, what I was really hopeing for is an AJAX chat run off a single php script using a simple storage method, like a flat-file or DB, that could be easily extended. Every 500 ms or so the page would look for updates and the php script controlling would send from the last time code passed to it via post, and the additional text would just be appended. Problems might be making sure that no one else writes the file when one script is writing, making it highly optimal with minimal bandwith usage, and maybe a simple authentication method that allows it to be plugged into existing projects. Typing this up makes it sound so good I am going to take a stab at it this afternoon.
- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact:
- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact:
- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact:
It's really one of only two options you have (assuming you want to keep it web based and you want it to maintain an open connection).
You'll have to write a server side as well and that could be done in any language really (C++, C#, Java etc).
The client piece could be done in Java and included as an applet.
If you're not too concerned with retaining an open connection, look into XMLHttp or Ajax...
You'll have to write a server side as well and that could be done in any language really (C++, C#, Java etc).
The client piece could be done in Java and included as an applet.
If you're not too concerned with retaining an open connection, look into XMLHttp or Ajax...
A very long time ago (had to find it back via http://archive.org) i wrote a ChatProgram.. But be warned, the code is really ugly...
http://timvw.madoka.be/programming/java/ChatProgram.txt
http://timvw.madoka.be/programming/java/ChatProgram.txt
php chat room
Just use php, dhtml and xmlhttp object to create a real time chat room. It would mean the user doesnt have to download a java plug in and that they don't have to download the chat program to run..
However it would limit them to using IE, Firefox and Safari..
But that is what I would do
However it would limit them to using IE, Firefox and Safari..
But that is what I would do
Re: php chat room
Actually, Opera added some support for xmlhttp in 8. Its enough that it implements all the functionality in gmail, and apparently, upcoming betas extend it further.thedamo wrote:Just use php, dhtml and xmlhttp object to create a real time chat room.
...
However it would limit them to using IE, Firefox and Safari..
So, xmlhttp isn't impossible on Opera, its just challenging.
Of course, you left out Konqueror, which handles it perfectly, and other smaller browsers (camino, iCab, etc) that all handle it just fine too.