Class: AMQ::Protocol::Connection::StartOk
- Defined in:
- lib/amq/protocol/client.rb
Class Method Summary collapse
-
.encode(client_properties, mechanism, response, locale) ⇒ Object
[u’client_properties = nil’, u“mechanism = u’PLAIN’”, u’response = nil’, u“locale = u’en_US’”].
- .has_content? ⇒ Boolean
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
- u’client_properties = nil’, u“mechanism = u’PLAIN’”, u’response = nil’, u“locale = u’en_US’”
255 256 257 258 259 260 261 262 263 264 265 266 |
# File 'lib/amq/protocol/client.rb', line 255 def self.encode(client_properties, mechanism, response, locale) channel = 0 buffer = @packed_indexes.dup buffer << AMQ::Protocol::Table.encode(client_properties) buffer << mechanism.to_s.bytesize.chr buffer << mechanism.to_s buffer << [response.to_s.bytesize].pack(PACK_UINT32) buffer << response.to_s buffer << locale.to_s.bytesize.chr buffer << locale.to_s MethodFrame.new(buffer, channel) end |
.has_content? ⇒ Boolean
249 250 251 |
# File 'lib/amq/protocol/client.rb', line 249 def self.has_content? false end |