Class IP

  • All Implemented Interfaces:
    IPacket
    Direct Known Subclasses:
    IPv4, IPv6

    public abstract class IP
    extends BasePacket
    Implements IP packet format.
    • Constructor Detail

      • IP

        public IP()
    • Method Detail

      • getVersion

        public abstract byte getVersion()
        Gets IP version number.
        Returns:
        IP version number
      • setVersion

        public abstract IP setVersion​(byte version)
        Sets IP version number.
        Parameters:
        version - the version to set
        Returns:
        IP class
      • deserializer

        public static Deserializer<? extends IP> deserializer()
        Deserializer function for IP packets.
        Returns:
        deserializer function