/* * testThree.java * * Created on 21 June 2007, 20:50 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ package learning; import jpcap.JpcapCaptor; import jpcap.NetworkInterface; /** * * @author Mike */ public class testThree { /** Creates a new instance of testThree */ public testThree() { NetworkInterface[] devices = JpcapCaptor.getDeviceList(); int index=0; // set index of the interface that you want to open. //Open an interface with openDevice(NetworkInterface intrface, int snaplen, boolean promics, int to_ms) JpcapCaptor captor=JpcapCaptor.openDevice(device[index], 65535, false, 20); } }