Is it possible to program a chat applet that will be able to message all of the people connected to a web site without connecting to a server? i mean, is it possible to send the message directly to another client's applet?
Negative. Applets cannot make network connections to anyone except the server they came from--that is unless you are willing to mess around with the security manager (i.e. you have control or access to the mahcines that will be running your app).
You'd be better off in setting up your chat client as an application and have each client run a multicast socket (I think). Haven't ever written a client centric chatter but this seems like it would be the best way.
Meadandale is right. A multicast socket would seem to be a better choice. You don't necessary have to code your own clients too if you want to use multicasting. All you need is to create a server application and you can connect to it through telnet and other apps.
Regards,
Leon If you need additional help, you can email to me at zaoliang@hotmail.com I don't guaranty that I will be able to solve your problems but I will try my best
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.