Networking in Java pls HELP

hello friends,

i'm tryinggroup chat kinda thing in Java.. i think i can do it using UDP sockets etc.. which has MultiCastSocket class...

but as UDP is not that reliable, i'm trying to do it using TCP .. but i'm not able to find such analogous classes.

in TCP, i've aServer class which will start the server , aSocketThread class which will start a thread which in turn create a socket each time a new client requests connection... and an ordinaryClient class

wat i want to do is, when any of the clients send a msg it should b multicasted to all the clients..

can anyone suggest how i should proceed..

[682 byte] By [manishmulani@nitka] at [2007-11-27 6:04:54]
# 1
Could you tell us more about your requirements please? Namely where do you plan to use this chat? On the internet or on a LAN?
cotton.ma at 2007-7-12 16:49:50 > top of Java-index,Core,Core APIs...
# 2
internet
manishmulani@nitka at 2007-7-12 16:49:50 > top of Java-index,Core,Core APIs...
# 3
> internetThen multicasting is not an option. Go with TCP. Maintain a list of sockets/connected clients and send the data to each of them.
cotton.ma at 2007-7-12 16:49:50 > top of Java-index,Core,Core APIs...
# 4
ok thanx a lot!!!
manishmulani@nitka at 2007-7-12 16:49:50 > top of Java-index,Core,Core APIs...