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
  • Field Details

  • 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