Package pcap.api.internal
Class PcapInterface
java.lang.Object
pcap.api.internal.PcapInterface
@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 Addressaddresses()java.lang.Stringdescription()intflags()booleanisConnected()Connected.booleanisDisconnected()Disconnected.booleanisLoopback()Interface is "loopback".booleanisRunning()Interface is running.booleanisUp()Interface is up.booleanisWireless()interface is wireless (*NOT* necessarily Wi-Fi!)java.util.Iterator<Interface>iterator()java.lang.Stringname()Interfacenext()java.lang.StringtoString()
-
Constructor Details
-
Method Details
-
next
-
name
public java.lang.String name() -
description
public java.lang.String description()- Specified by:
descriptionin interfaceInterface
-
addresses
-
flags
public int flags() -
isLoopback
public boolean isLoopback()Interface is "loopback".- Returns:
- returns
trueif interface if "loopback",falseotherwise.
-
isUp
public boolean isUp()Interface is up.- Returns:
- returns
trueif interface is up,falseotherwise.
-
isRunning
public boolean isRunning()Interface is running.- Returns:
- returns
trueif interface is running,falseotherwise.
-
isWireless
public boolean isWireless()interface is wireless (*NOT* necessarily Wi-Fi!)- Returns:
- returns
trueif interface is wireless,false.
-
isConnected
public boolean isConnected()Connected.- Returns:
- returns
trueif interface is connected to the network,false.
-
isDisconnected
public boolean isDisconnected()Disconnected.- Returns:
- returns
trueif interface is disconnected from the network,false.
-
iterator
- Specified by:
iteratorin interfacejava.lang.Iterable<Interface>
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-