Interface OutboundPacket

  • All Known Implementing Classes:
    DefaultOutboundPacket

    public interface OutboundPacket
    Represents an outbound data packet that is to be emitted to network via an infrastructure device.
    • Method Detail

      • sendThrough

        DeviceId sendThrough()
        Returns the identity of a device through which this packet should be sent.
        Returns:
        device identity
      • treatment

        TrafficTreatment treatment()
        Returns how the outbound packet should be treated.
        Returns:
        output treatment
      • data

        java.nio.ByteBuffer data()
        Returns immutable view of the raw data to be sent.
        Returns:
        data to emit
      • inPort

        default PortNumber inPort()
        Returns the input port of this packet. Defaults to controller port. This is useful for actions that involve the input port such as ALL or FLOOD.
        Returns:
        the input port to be used for this packet.