Package pcap.api.internal
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.Addressaddresses()java.lang.Stringdescription()intflags()booleanisLoopback()Is loopback interface?booleanisRunning()Is interface is running?booleanisUp()Is interface is up?java.util.Iterator<pcap.spi.Interface>iterator()java.lang.Stringname()pcap.spi.Interfacenext()java.lang.StringtoString()
-
Constructor Details
-
Method Details
-
next
public pcap.spi.Interface next()- Specified by:
nextin interfacepcap.spi.Interface
-
name
public java.lang.String name()- Specified by:
namein interfacepcap.spi.Interface
-
description
public java.lang.String description()- Specified by:
descriptionin interfacepcap.spi.Interface
-
addresses
public pcap.spi.Address addresses()- Specified by:
addressesin interfacepcap.spi.Interface
-
flags
public int flags()- Specified by:
flagsin interfacepcap.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:
iteratorin interfacejava.lang.Iterable<pcap.spi.Interface>
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-