class UdpHeader
Class for the UdpHeader
in the Steam Language.
Constants
- MAGIC
MAGIC
constant
Public Class Methods
Instantiate a UdpHeader
object
SteamSerializable::new
# File lib/steamd/generated/netheader.rb, line 9 def initialize super([{:name=>"magic", :type=>"uint", :modifier=>nil, :value=>"UdpHeader::MAGIC", :size=>nil, :modifier_size=>nil}, {:name=>"payload_size", :type=>"ushort", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"packet_type", :type=>"EUdpPacketType", :modifier=>nil, :value=>"EUdpPacketType::INVALID", :size=>nil, :modifier_size=>nil}, {:name=>"flags", :type=>"byte", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"source_conn_id", :type=>"uint", :modifier=>nil, :value=>512, :size=>nil, :modifier_size=>nil}, {:name=>"dest_conn_id", :type=>"uint", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"seq_this", :type=>"uint", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"seq_ack", :type=>"uint", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"packets_in_msg", :type=>"uint", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"msg_start_seq", :type=>"uint", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}, {:name=>"msg_size", :type=>"uint", :modifier=>nil, :value=>nil, :size=>nil, :modifier_size=>nil}], [{:name=>"MAGIC", :type=>"uint", :modifier=>"const", :value=>"0x31305356", :size=>nil, :modifier_size=>nil}]) self.magic = UdpHeader::MAGIC self.packet_type = EUdpPacketType::INVALID self.source_conn_id = 512 end
Public Instance Methods
Gets the dest_conn_id
variable.
@note defaults to @return [uint] the value of dest_conn_id
# File lib/steamd/generated/netheader.rb, line 95 def dest_conn_id @variables['dest_conn_id'][:value] end
Sets the dest_conn_id
variable.
@param value [uint] the new value
# File lib/steamd/generated/netheader.rb, line 102 def dest_conn_id=(value) @variables['dest_conn_id'][:value] = value end
Gets the flags variable.
@note defaults to @return [byte] the value of flags
# File lib/steamd/generated/netheader.rb, line 65 def flags @variables['flags'][:value] end
Sets the flags variable.
@param value [byte] the new value
# File lib/steamd/generated/netheader.rb, line 72 def flags=(value) @variables['flags'][:value] = value end
Gets the magic variable.
@note defaults to UdpHeader::MAGIC
@return [uint] the value of magic
# File lib/steamd/generated/netheader.rb, line 20 def magic @variables['magic'][:value] end
Sets the magic variable.
@param value [uint] the new value
# File lib/steamd/generated/netheader.rb, line 27 def magic=(value) @variables['magic'][:value] = value end
Sets the msg_size
variable.
@param value [uint] the new value
# File lib/steamd/generated/netheader.rb, line 177 def msg_size=(value) @variables['msg_size'][:value] = value end
Gets the msg_start_seq
variable.
@note defaults to @return [uint] the value of msg_start_seq
# File lib/steamd/generated/netheader.rb, line 155 def msg_start_seq @variables['msg_start_seq'][:value] end
Sets the msg_start_seq
variable.
@param value [uint] the new value
# File lib/steamd/generated/netheader.rb, line 162 def msg_start_seq=(value) @variables['msg_start_seq'][:value] = value end
Gets the packet_type
variable.
@note defaults to EUdpPacketType::INVALID @return [EUdpPacketType] the value of packet_type
# File lib/steamd/generated/netheader.rb, line 50 def packet_type @variables['packet_type'][:value] end
Sets the packet_type
variable.
@param value [EUdpPacketType] the new value
# File lib/steamd/generated/netheader.rb, line 57 def packet_type=(value) @variables['packet_type'][:value] = value end
Gets the packets_in_msg
variable.
@note defaults to @return [uint] the value of packets_in_msg
# File lib/steamd/generated/netheader.rb, line 140 def packets_in_msg @variables['packets_in_msg'][:value] end
Sets the packets_in_msg
variable.
@param value [uint] the new value
# File lib/steamd/generated/netheader.rb, line 147 def packets_in_msg=(value) @variables['packets_in_msg'][:value] = value end
Gets the payload_size
variable.
@note defaults to @return [ushort] the value of payload_size
# File lib/steamd/generated/netheader.rb, line 35 def payload_size @variables['payload_size'][:value] end
Sets the payload_size
variable.
@param value [ushort] the new value
# File lib/steamd/generated/netheader.rb, line 42 def payload_size=(value) @variables['payload_size'][:value] = value end
Sets the seq_ack
variable.
@param value [uint] the new value
# File lib/steamd/generated/netheader.rb, line 132 def seq_ack=(value) @variables['seq_ack'][:value] = value end
Sets the seq_this
variable.
@param value [uint] the new value
# File lib/steamd/generated/netheader.rb, line 117 def seq_this=(value) @variables['seq_this'][:value] = value end
Gets the source_conn_id
variable.
@note defaults to 512 @return [uint] the value of source_conn_id
# File lib/steamd/generated/netheader.rb, line 80 def source_conn_id @variables['source_conn_id'][:value] end
Sets the source_conn_id
variable.
@param value [uint] the new value
# File lib/steamd/generated/netheader.rb, line 87 def source_conn_id=(value) @variables['source_conn_id'][:value] = value end