Class: AMQ::Protocol::Connection::StartOk

Inherits:
Method
  • Object
show all
Defined in:
lib/amq/protocol/client.rb

Class Method Summary collapse

Methods inherited from Method

encode_body, index, inherited, instantiate, method_id, methods, name, split_headers

Class Method Details

.encode(client_properties, mechanism, response, locale) ⇒ Object

“client_properties = nil”, “mechanism = ”PLAIN“”, “response = nil”, “locale = ”en_US“”

Returns:



334
335
336
337
338
339
340
341
342
343
344
345
346
# File 'lib/amq/protocol/client.rb', line 334

def self.encode(client_properties, mechanism, response, locale)
  channel = 0
  buffer = ""
  buffer << @packed_indexes
  buffer << AMQ::Protocol::Table.encode(client_properties)
  buffer << mechanism.bytesize.chr
  buffer << mechanism
  buffer << [response.bytesize].pack(PACK_UINT32)
  buffer << response
  buffer << locale.bytesize.chr
  buffer << locale
  MethodFrame.new(buffer, channel)
end

.has_content?Boolean

Returns:

  • (Boolean)


328
329
330
# File 'lib/amq/protocol/client.rb', line 328

def self.has_content?
  false
end