Class Subnet


  • public class Subnet
    extends Object
    A IP subnet using the CIDR notation. Currently, only IP version 4 address are supported.
    Author:
    Apache MINA Project
    • Constructor Detail

      • Subnet

        public Subnet​(InetAddress subnet,
                      int mask)
        Creates a subnet from CIDR notation. For example, the subnet 192.168.0.0/24 would be created using the InetAddress 192.168.0.0 and the mask 24.
        Parameters:
        subnet - The InetAddress of the subnet
        mask - The mask