InetAddress IsMCNodeLocal() Example

Utility routine to check if the multicast address has node scope.


InetAddressclass IsMCNodeLocal() method example. This example shows you how to use IsMCNodeLocal() method.This method gives Utility routine to check if the multicast address has node scope.

Here is the code:-
/* 
 * @Program that gives Utility routine to check if the multicast address has 
    node scope.
 * IsMCNodeLocal.java 
 * Author:-RoseIndia Team
 * Date:-19-Jun-2008
 */

import java.net.*;
public class IsMCNodeLocal 
{
public static void main(String[] argsthrows UnknownHostException{
InetAddress ia = InetAddress.getLocalHost();
System.out.println("Multicast address has node scope.: "+ia.isMCNodeLocal());
    }
}

Output of the program:-
 Multicast address has node scope.: false

Post Comment
Name:
E-mail:
Contact no :
Comments:
  Refresh Image
Verify Image:
 
 
Your Comment's
 
 
 

HOME | COPYRIGHT | CONTACT US