Microsoft SDK for Java

checkMulticast

The checkMulticast method of the StandardSecurityManager Class contains the following signatures:

checkMulticast(InetAddress maddr)
checkMulticast(InetAddress maddr, byte ttl)

checkMulticast(InetAddress maddr)

Determines whether classes within the current execution context, based on the call stack of the current thread, are allowed to use IP multicast.

Syntax

public void checkMulticast(InetAddress maddr);

Parameters

maddr The Internet address.

Remarks

The check succeeds only if all the classes found on the call stack possess NetIOPermissions, and if those permissions allow multicast operations on the specified Internet address. This method overrides the java.lang.SecurityManager.checkMulticast(InetAddress) method.

Exceptions

SecurityException if the security check fails.

checkMulticast(InetAddress maddr, byte ttl)

Determines whether classes within the current execution context, based on the call stack of the current thread, are allowed to use IP multicast.

Syntax

public void checkMulticast(InetAddress maddr, byte ttl);

Parameters

maddr The Internet address.
ttl The time to live for the packet.

Remarks

The check succeeds only if all the classes found on the call stack possess NetIOPermissions, and if those permissions allow multicast operations on the specified address. This method overrides the java.lang.SecurityManager.checkMulticast(InetAddress,byte) method.

Exceptions

SecurityException if the security check fails.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.