Pummpcomm v2.5.1 Pummpcomm.Session.Response View Source
Response to a Pummpcomm.Session.Command.
Link to this section Summary
Types
opcode- response opcodedata- data across all frames. data is in-order.frames- accumulated frames, for a multi-frame response. Frames are in reverse-order.last_frame?- if allframeshave been received anddatais complete
Functions
Adds packet to response
Link to this section Types
Link to this type
t()
View Source
t() :: %Pummpcomm.Session.Response{data: binary, frames: [Pummpcomm.Session.Packet.t], last_frame?: boolean | nil, opcode: byte}
opcode- response opcodedata- data across all frames. data is in-order.frames- accumulated frames, for a multi-frame response. Frames are in reverse-order.last_frame?- if allframeshave been received anddatais complete
Link to this section Functions
Link to this function
add_packet(response, packet)
View Source
add_packet(Pummpcomm.Session.Response.t, Pummpcomm.Session.Packet.t) :: {:ok, Pummpcomm.Session.Response.t} | {:error, String.t}
Adds packet to response.