Class PcapInterface

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

@Inclubating
public class PcapInterface
extends java.lang.Object
implements pcap.spi.Interface
Pcap Interface implementation
Author:
Ardika Rommy Sanjaya
  • Constructor Summary

    Constructors 
    Constructor Description
    PcapInterface​(pcap_mapping.pcap_if pcap_if)  
  • Method Summary

    Modifier and Type Method Description
    pcap.spi.Address addresses()  
    java.lang.String description()  
    int flags()  
    boolean isLoopback()
    Is loopback interface?
    boolean isRunning()
    Is interface is running?
    boolean isUp()
    Is interface is up?
    java.util.Iterator<pcap.spi.Interface> iterator()  
    java.lang.String name()  
    pcap.spi.Interface 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
  • Constructor Details

  • Method Details

    • next

      public pcap.spi.Interface next()
      Specified by:
      next in interface pcap.spi.Interface
    • name

      public java.lang.String name()
      Specified by:
      name in interface pcap.spi.Interface
    • description

      public java.lang.String description()
      Specified by:
      description in interface pcap.spi.Interface
    • addresses

      public pcap.spi.Address addresses()
      Specified by:
      addresses in interface pcap.spi.Interface
    • flags

      public int flags()
      Specified by:
      flags in interface pcap.spi.Interface
    • isLoopback

      public boolean isLoopback()
      Is loopback interface?
      Returns:
      true if loopback interface, false otherwise.
    • isUp

      public boolean isUp()
      Is interface is up?
      Returns:
      true if interface is up, false otherwise.
    • isRunning

      public boolean isRunning()
      Is interface is running?
      Returns:
      true if interface is running, false otherwise.
    • iterator

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

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