Examples of LiveCaptureDevice


Examples of org.jnetstream.capture.LiveCaptureDevice

    /*
     * Now open up all the specified interfaces
     */
    final StringBuilder errbuf = new StringBuilder();
    for (int i = 0; i < captureDevice.length; i++) {
      LiveCaptureDevice device = captureDevice[i];
      pcaps[i] =
          Pcap.openLive(device.getName(), snaplen, (promiscuous ? 1 : 0),
              DEFAULT_BREAK_LOOP_CHECK, errbuf);

      if (pcaps[i] == null) {
        throw new IOException("Unable to open capture device "
            + device.getName() + ". Error: " + errbuf.toString());
      }
    }

    this.factory =
        ProtocolRegistry.getPacketFactory(LivePacketFactory.class,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.