class UdpHeader

Class for the UdpHeader in the Steam Language.

Constants

MAGIC

MAGIC constant

Public Class Methods

new() click to toggle source

Instantiate a UdpHeader object

Calls superclass method 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

dest_conn_id() click to toggle source

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
dest_conn_id=(value) click to toggle source

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
flags() click to toggle source

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
flags=(value) click to toggle source

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
magic() click to toggle source

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
magic=(value) click to toggle source

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
msg_size() click to toggle source

Gets the msg_size variable.

@note defaults to @return [uint] the value of msg_size

# File lib/steamd/generated/netheader.rb, line 170
def msg_size
  @variables['msg_size'][:value]
end
msg_size=(value) click to toggle source

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
msg_start_seq() click to toggle source

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
msg_start_seq=(value) click to toggle source

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
packet_type() click to toggle source

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
packet_type=(value) click to toggle source

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
packets_in_msg() click to toggle source

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
packets_in_msg=(value) click to toggle source

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
payload_size() click to toggle source

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
payload_size=(value) click to toggle source

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
seq_ack() click to toggle source

Gets the seq_ack variable.

@note defaults to @return [uint] the value of seq_ack

# File lib/steamd/generated/netheader.rb, line 125
def seq_ack
  @variables['seq_ack'][:value]
end
seq_ack=(value) click to toggle source

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
seq_this() click to toggle source

Gets the seq_this variable.

@note defaults to @return [uint] the value of seq_this

# File lib/steamd/generated/netheader.rb, line 110
def seq_this
  @variables['seq_this'][:value]
end
seq_this=(value) click to toggle source

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
source_conn_id() click to toggle source

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
source_conn_id=(value) click to toggle source

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