Microsoft SDK for Java

getIPRules

This method of the NetIOPermission Class obtains the combined set of 32-bit IP ranges and corresponding port rules for the specified connection type, in String form.

Syntax

public String getIPRules(int flags);

Return Value

Returns the string form of the IP ranges 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 either BIND or CONNECT to specify the connection type. The second flag should be either ALLOW or DENY to indicate whether the 32-bit IP ranges 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, or DENYBIND.

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