Class: Mfp::ControlEvent

Inherits:
Data
  • Object
show all
Defined in:
lib/mfp/event.rb

Overview

ControlEvent is delivered when a CONTROL frame is received on a connection. Payload is opaque to MFP — its structure is defined by the upper-layer protocol. StreamID may be zero for connection-scoped signals.

Instance Attribute Summary collapse

Instance Attribute Details

#payloadObject (readonly)

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



12
13
14
# File 'lib/mfp/event.rb', line 12

def payload
  @payload
end

#stream_idObject (readonly)

Returns the value of attribute stream_id

Returns:

  • (Object)

    the current value of stream_id



12
13
14
# File 'lib/mfp/event.rb', line 12

def stream_id
  @stream_id
end