Class SCPResponse

java.lang.Object
uk.ac.manchester.spinnaker.messages.scp.SCPResponse
Direct Known Subclasses:
BMPRequest.BMPResponse, CheckOKResponse, NoResponse

public abstract class SCPResponse
extends Object
Represents an abstract SCP response.
  • Field Details

    • sdpHeader

      public final SDPHeader sdpHeader
      The SDP header from the response.
    • result

      public final SCPResult result
      The result of the SCP response.
    • sequence

      public final int sequence
      The sequence number of the SCP response, between 0 and 65535.
  • Constructor Details

    • SCPResponse

      protected SCPResponse​(ByteBuffer buffer)
      Reads a packet from a bytestring of data. Subclasses must also deserialize any payload after calling this constructor.
      Parameters:
      buffer - the buffer to deserialise from
  • Method Details