Class TcpIpPacketHandler

  • All Implemented Interfaces:
    PacketHandler

    public class TcpIpPacketHandler
    extends Object
    implements PacketHandler
    Little helper to automatically unwrap TCP packets to only pass along the payload and not the raw Ethernet packet.
    • Constructor Detail

      • TcpIpPacketHandler

        public TcpIpPacketHandler()
    • Method Detail

      • getData

        public byte[] getData​(org.pcap4j.packet.Packet packet)
        Specified by:
        getData in interface PacketHandler