Microsoft SDK for Java

getHosts

This method of the NetIOPermission Class obtains a combined pattern that matches all the host name patterns for the specified connection type.

Syntax

public WildcardExpression getHosts(int flags);

Return Value

Returns a WildcardExpression that describes the hosts that apply to the specified connection type.

Parameters

flags The connection type, which consists of two separate flags combined with a logical OR operator (|). The first flag should be BIND, CONNECT, or MULTICAST to specify the connection type. The second flag should be either ALLOW or DENY to indicate whether the pattern should be obtained using the include or exclude rules. For convenience, instead of using the logical OR operator with the two flags, you can use one of the combination flags: ALLOWCONNECT, DENYCONNECT, ALLOWBIND, DENYBIND, ALLOWMULTICAST, or DENYMULTICAST.

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