Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: How to join a Multicast Group

Java: How to join a Multicast Group

import java.net.InetAddress;
import java.net.MulticastSocket;
public class MulticastGroupExample
  public static void main(String[] argv) throws Exception
  MulticastSocket multi_sock = new MulticastSocket(655);
  // Join a multicast group
  InetAddress ia = InetAddress.getByName("");
  byte[] buff = new byte[1024];
  while (true)
    DatagramPacket dp = new DatagramPacket(buff, buff.length);
    String msg= new String(dp.getData( ), "ISO_8859_1");
    System.out.println("Received data: "+msg);

Users who found this page were searching for:

  • multicast group Java Example
  • how to join multicast group in python example
  • xml+files+for+multicast+groups+in+java
  • how java multicast join group is imlemented
  • perl multicast example
  • java multicast join group
  • java scriptengine python example
  • how to parce a excel.xml python
  • python using dictionary
  • joining multicast group java

No comments yet.

Leave a Comment