InetAddress IsMCOrgLocal() Example

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


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

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

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

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

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

HOME | COPYRIGHT | CONTACT US