Package org.krakenapps.pcap.packet

Examples of org.krakenapps.pcap.packet.PacketHeader


    public GlobalHeader getGlobalHeader() {
        return globalHeader;
    }

    private PcapPacket readPacket(int magicNumber) throws IOException {
        PacketHeader packetHeader = readPacketHeader(magicNumber);
        Buffer packetData = readPacketData(packetHeader.getInclLen());
        return new PcapPacket(packetHeader, packetData);
    }
View Full Code Here


            tsUsec = ByteOrderConverter.swap(tsUsec);
            inclLen = ByteOrderConverter.swap(inclLen);
            origLen = ByteOrderConverter.swap(origLen);
        }

        return new PacketHeader(tsSec, tsUsec, inclLen, origLen);
    }
View Full Code Here

TOP

Related Classes of org.krakenapps.pcap.packet.PacketHeader

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.