Class PCapJNI

java.lang.Object
javaforce.jni.PCapJNI
All Implemented Interfaces:
PCapAPI

public class PCapJNI extends Object implements PCapAPI
  • Constructor Details

    • PCapJNI

      public PCapJNI()
  • Method Details

    • getInstance

      public static PCapJNI getInstance()
    • pcapInit

      public boolean pcapInit(String lib1, String lib2)
      Specified by:
      pcapInit in interface PCapAPI
    • pcapListLocalInterfaces

      public String[] pcapListLocalInterfaces()
      Specified by:
      pcapListLocalInterfaces in interface PCapAPI
    • pcapStart

      public long pcapStart(String local_interface, boolean nonblocking)
      Specified by:
      pcapStart in interface PCapAPI
    • pcapStop

      public void pcapStop(long id)
      Specified by:
      pcapStop in interface PCapAPI
    • pcapCompile

      public boolean pcapCompile(long handle, String program)
      Specified by:
      pcapCompile in interface PCapAPI
    • pcapRead

      public byte[] pcapRead(long handle)
      Specified by:
      pcapRead in interface PCapAPI
    • pcapWrite

      public boolean pcapWrite(long handle, byte[] packet, int offset, int length)
      Specified by:
      pcapWrite in interface PCapAPI