Class PcapInterface

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

@Inclubating
public class PcapInterface
extends java.lang.Object
implements 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
    Address addresses()  
    java.lang.String description()  
    int flags()  
    boolean isConnected()
    Connected.
    boolean isDisconnected()
    Disconnected.
    boolean isLoopback()
    Interface is "loopback".
    boolean isRunning()
    Interface is running.
    boolean isUp()
    Interface is up.
    boolean isWireless()
    interface is wireless (*NOT* necessarily Wi-Fi!)
    java.util.Iterator<Interface> iterator()  
    java.lang.String name()  
    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 Interface next()
      Specified by:
      next in interface Interface
    • name

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

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

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

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

      public boolean isLoopback()
      Interface is "loopback".
      Returns:
      returns true if interface if "loopback", false otherwise.
    • isUp

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

      public boolean isRunning()
      Interface is running.
      Returns:
      returns true if interface is running, false otherwise.
    • isWireless

      public boolean isWireless()
      interface is wireless (*NOT* necessarily Wi-Fi!)
      Returns:
      returns true if interface is wireless, false.
    • isConnected

      public boolean isConnected()
      Connected.
      Returns:
      returns true if interface is connected to the network, false.
    • isDisconnected

      public boolean isDisconnected()
      Disconnected.
      Returns:
      returns true if interface is disconnected from the network, false.
    • iterator

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

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