Class: Samsung::Protocol::AuthFrame

Inherits:
Frame
  • Object
show all
Defined in:
lib/samsung/protocol/auth_frame.rb

Instance Attribute Summary

Attributes inherited from Frame

#data

Instance Method Summary collapse

Methods inherited from Frame

#hex, #pop_frame, #pop_int16, #pop_int32, #pop_int8, #pop_string, #pop_string64, #push_frame, #push_int16, #push_int32, #push_int8, #push_string, #push_string64, #size

Constructor Details

#initialize(local_ip, app_id, name) ⇒ AuthFrame

Returns a new instance of AuthFrame.



4
5
6
7
8
9
10
11
# File 'lib/samsung/protocol/auth_frame.rb', line 4

def initialize(local_ip, app_id, name)
  super()
  push_int8(0x64)
  push_int8(0x00)
  push_string64(local_ip)
  push_string64(app_id)
  push_string64(name)
end