Package net.sourceforge.jpcap.util

Examples of net.sourceforge.jpcap.util.Timeval


   * @param data the contents of the captured packet.
   */
  public void handlePacket(int length, int caplen,
                           int seconds, int useconds, byte [] data) {
    // create a raw packet and abstract packet from the raw data
    Timeval tv = new Timeval(seconds, useconds);

    RawPacket rp = new RawPacket(tv, data,
                                 length > caplen ? length - caplen : 0);
    Packet p = PacketFactory.dataToPacket(linkType, data, tv);

View Full Code Here

TOP

Related Classes of net.sourceforge.jpcap.util.Timeval

Copyright © 2018 www.massapicom. 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.