Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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
 
Similar Threads
DNS query, protocol
Hint needed: TCP -> UDP , test on localhost
multicast problems
Communicate 2 android in 2 emulator
multicast socket problem