Class PcapAddress

java.lang.Object
pcap.api.internal.PcapAddress
All Implemented Interfaces:
java.lang.Iterable<pcap.spi.Address>, pcap.spi.Address

@Inclubating
public class PcapAddress
extends java.lang.Object
implements pcap.spi.Address
Pcap Address implementation
Author:
Ardika Rommy Sanjaya
  • Method Summary

    Modifier and Type Method Description
    java.net.InetAddress address()  
    java.net.InetAddress broadcast()  
    java.net.InetAddress destination()  
    java.util.Iterator<pcap.spi.Address> iterator()  
    java.net.InetAddress netmask()  
    pcap.spi.Address next()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Method Details

    • next

      public pcap.spi.Address next()
      Specified by:
      next in interface pcap.spi.Address
    • address

      public java.net.InetAddress address()
      Specified by:
      address in interface pcap.spi.Address
    • netmask

      public java.net.InetAddress netmask()
      Specified by:
      netmask in interface pcap.spi.Address
    • broadcast

      public java.net.InetAddress broadcast()
      Specified by:
      broadcast in interface pcap.spi.Address
    • destination

      public java.net.InetAddress destination()
      Specified by:
      destination in interface pcap.spi.Address
    • iterator

      public java.util.Iterator<pcap.spi.Address> iterator()
      Specified by:
      iterator in interface java.lang.Iterable<pcap.spi.Address>
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object