Microsoft SDK for Java

addIPRules

This method of the NetIOPermission Class adds a set of IP rules and per-IP port rules from the string form for the specified access types.

Syntax

public void addIPRules(int flags, String spec);

Parameters

flags The access flags, which consist 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 address range being added should use 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: ALLOWALL, DENYALL, ALLOWCONNECT, DENYCONNECT, ALLOWBIND, or DENYBIND.
spec The textual IP/port specification.

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