jpcap

From: Damien Legrand (damien.legrand_at_ch-cesame-angers.fr)
Date: 01/13/04

  • Next message: FISH: "Re: Tracking key combination"
    Date: 13 Jan 2004 05:40:53 -0800
    
    

    i use jpcap classe for captured packet but i don't arrive to save the
    packets in a file with the method jpcapwriter...

    how help me?

    thanks.

    my code is that :

    import jpcap.*;

    class Tcpdump implements JpcapHandler
    {
       public void handlePacket(Packet packet){
         System.out.println(packet);
       }
         public static void main(String[] args) throws
    java.io.IOException{
         String[] lists=Jpcap.getDeviceDescription();
         System.out.println("Start capturing on "+lists[0]);
         Jpcap jpcap=Jpcap.openDevice(Jpcap.getDeviceList()[0],1000,false,20);
         //jpcap.setFilter("host 132.147.47.98",true);
         jpcap.loopPacket(-1,new Tcpdump());
    }
    }


  • Next message: FISH: "Re: Tracking key combination"

    Relevant Pages

    • jpcap
      ... i use jpcap classe for captured packet but i don't arrive to save the ... packets in a file with the method jpcapwriter... ...
      (comp.lang.java)
    • help me .... class jpcapwriter!!!!!!!!!
      ... i use jpcap classe for captured packet but i don't arrive to save the ... packets in a file with the method jpcapwriter... ...
      (comp.lang.java.programmer)
    • packet-data
      ... i know how to capture a packet using netfilter hook.. ... captured packet. ... but i was unable to retrive data from the packet .. ... plz show me an example to access data.. ...
      (Linux-Kernel)
    • Re: packet-data
      ... i know how to capture a packet using netfilter hook.. ... captured packet. ... but i was unable to retrive data from the packet .. ... plz show me an example to access data.. ...
      (Linux-Kernel)