Class: ML_ruby::ML_payload_handler

Inherits:
Object
  • Object
show all
Defined in:
lib/ml-ruby/ml_protocol.rb

Constant Summary collapse

Types =
{
  0  => ML_R_core_protocol,
  19 => ML_R_console_message,
  20 => ML_R_network_info,
  47 => ML_R_bad_password,
  52 => ML_R_fileinfo,
  53 => ML_R_downloading_files,
  54 => ML_R_downloaded_files,
}

Class Method Summary collapse

Class Method Details

.for(opcode) ⇒ Object



157
158
159
# File 'lib/ml-ruby/ml_protocol.rb', line 157

def self.for opcode
  Types[opcode]
end