The addIPs method of the NetIOPermission Class contains the following signatures:
addIPs(int flags, int s, int e, IntRanges ports)
addIPs(int flags, int s, int e)
addIPs(int flags, byte[] s, byte[] e, IntRanges ports)
addIPs(int flags, byte[] s, byte[] e)
Adds a 32-bit address range to the permissions with the specified port rules and the specified access types.
public void addIPs(int flags, int s, int e, IntRanges ports);
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 connect type. The second flag should be either ALLOW or DENY to indicate whether the 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. |
s | The starting address in the range. |
e | The ending address in the range. |
ports | The ports that apply. |
Adds a 32-bit address range to the permissions with no port rules.
public void addIPs(int flags, int s, int e);
flags | The access flags, which consist 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 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, DENYBIND, ALLOWMULTICAST, or DENYMULTICAST. |
s | The starting address in the range. |
e | The ending address in the range. |
Adds an address range to the permissions with the specified port rules.
public void addIPs(int flags, byte[] s, byte[] e, IntRanges ports);
flags | The access 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 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. |
s | The starting address in the range. |
e | The ending address in the range. |
ports | The ports that apply. |
Adds an address range to the permissions with no port rules.
public void addIPs(int flags, byte[] s, byte[] e);
flags | The access flags, which consist 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 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, DENYBIND, ALLOWMULTICAST, or DENYMULTICAST. |
s | The starting address in the range. |
e | The ending address in the range. |