Class: GorgonAMQ::Protocol::Connection::TuneOk
- Defined in:
- lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/client.rb
Class Method Summary collapse
-
.encode(channel_max, frame_max, heartbeat) ⇒ Object
[u’channel_max = false’, u’frame_max = false’, u’heartbeat = false’].
- .has_content? ⇒ Boolean
Methods inherited from Method
encode_body, index, inherited, instantiate, method_id, methods, name, split_headers
Class Method Details
.encode(channel_max, frame_max, heartbeat) ⇒ Object
- u’channel_max = false’, u’frame_max = false’, u’heartbeat = false’
366 367 368 369 370 371 372 373 |
# File 'lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/client.rb', line 366 def self.encode(channel_max, frame_max, heartbeat) channel = 0 buffer = @packed_indexes.dup buffer << [channel_max].pack(PACK_UINT16) buffer << [frame_max].pack(PACK_UINT32) buffer << [heartbeat].pack(PACK_UINT16) MethodFrame.new(buffer, channel) end |
.has_content? ⇒ Boolean
360 361 362 |
# File 'lib/gorgon_amq-protocol/lib/gorgon_amq/protocol/client.rb', line 360 def self.has_content? false end |