ID:274823
Aug 5 2002, 4:56 am
|
|
I know this is crazy but does anyone know how, or where I can learn how to make a chatroom.
|
In response to Lummox JR
|
|
Ya the first one.
|
In response to DBZ Kidd
|
|
DBZ Kidd wrote:
Ya the first one. If you only want a chat applet, but not a server, then you need to know which server you're connecting to. You need to know its protocol (the commands it sends back and forth) and how to interpret it. The big complicating factor here is that a Java applet can only connect to the same server as its codebase (where the .class files are stored). To do more than that, it needs to be given special permissions by your browser, and to do that it has to be signed. IRC, for example, would generally require you to be able to connect to arbitrary servers, so you can't rely on this here. I've never worked with signed applets, because to my mind if your applet needs those kinds of permissions then a Java applet is the wrong tool for the job. A Java application is another matter; this would be a standalone app, and has no such restrictions. Lummox JR |
One thing that got me started (this was a few years ago) was a free package I found called the FICT toolkit. It was basically a little piece of server code designed to just echo anything it was sent, to everyone. It had a few applications to go with it, that could be run as applets.
Or are you asking how to make a chat applet in Java, but not necessarily the server?
Lummox JR