aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes Writing a class that receive and broadcast at the same time Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Writing a class that receive and broadcast at the same time" Watch "Writing a class that receive and broadcast at the same time" New topic
Author

Writing a class that receive and broadcast at the same time

Antoine Koskoz
Greenhorn

Joined: Feb 28, 2010
Posts: 9
Hi everybody,
I'm trying to write a class using MulticastSocket and DatagramSocket which can send messages to all clients in the same group and receive messages from them.
It's basically a chat.

The problem is it works for the first 2 messages but after no one is receiving from the others.





Thanks for helping me.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Writing a class that receive and broadcast at the same time