|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectzisko.multicastor.program.mmrp.PcapHandler
public class PcapHandler
Try to get the device by the MAC address which is given by the user
Constructor Summary | |
---|---|
PcapHandler()
|
Method Summary | |
---|---|
static java.lang.String |
byteMACToString(byte[] mac)
Convert the MAC address which is an byte array to a string |
static boolean |
compareMACs(byte[] a,
byte[] b)
Compare two MAC addresses |
static org.jnetpcap.Pcap |
getPcapInstance(byte[] deviceMACAddress)
Return the pcap object of the network device |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PcapHandler()
Method Detail |
---|
public static org.jnetpcap.Pcap getPcapInstance(byte[] deviceMACAddress) throws java.io.IOException
deviceMACAddress
- of the network device
java.io.IOException
public static boolean compareMACs(byte[] a, byte[] b)
a
- is a MAC addressb
- is a MAC address
public static java.lang.String byteMACToString(byte[] mac)
mac
- which should be convert to a string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |