Microsoft SDK for Java

addGlobalPorts

This method of the NetIOPermission Class adds a global port range for the specified connection types.

Syntax

public void addGlobalPorts(int flags, int start, int end);

Parameters

flags The connection type, which consists of two separate flags combined with a logical OR operator (|). The first flag should be BIND, CONNECT, MULTICAST, or ALL_API_FLAGS to specify the connection type. The second flag should be either ALLOW or DENY to indicate whether the port 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, DENYBIND, ALLOWMULTICAST, or DENYMULTICAST.
start The beginning range value.
end The ending range value.

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