All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pcap4j.packet.TransportPacket Maven / Gradle / Ivy

/*_##########################################################################
  _##
  _##  Copyright (C) 2019  Pcap4J.org
  _##
  _##########################################################################
*/

package org.pcap4j.packet;

import org.pcap4j.packet.namednumber.Port;

/**
 * Transport layer packet (e.g. TCP and UDP)
 *
 * @author Ferran Altimiras
 * @since pcap4j 1.7.5
 */
public interface TransportPacket extends Packet {

  @Override
  public TransportHeader getHeader();

  /**
   * The interface representing the Transport layer packet's header.
   *
   * @author Ferran Altimiras
   * @since pcap4j 1.7.5
   */
  public interface TransportHeader extends Header {

    /** @return Source port */
    public Port getSrcPort();

    /** @return Destination port */
    public Port getDstPort();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy