Question

I have an app in Android that use communication by MulticastSocket. I want to write similar app in J2ME with communication Android <-> J2ME through WiFi using MulticastSocket. The problem is that in J2ME not exitsts MulticastSocket. There is only DatagramSocket. Can I manage with this problem using DatagramSocket?

Was it helpful?

Solution

No you can't. You cannot join a multicast group with a DatagramSocket. Ergo you can send to a multicast group, but not receive from one.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top