Class: UdpHeader
- Inherits:
-
Object
- Object
- UdpHeader
- Includes:
- SteamSerializable
- Defined in:
- lib/steamd/generated/netheader.rb
Overview
Class for the UdpHeader in the Steam Language.
Constant Summary collapse
- MAGIC =
MAGIC constant
0x31305356
Instance Attribute Summary
Attributes included from SteamSerializable
Instance Method Summary collapse
-
#dest_conn_id ⇒ uint
Gets the dest_conn_id variable.
-
#dest_conn_id=(value) ⇒ Object
Sets the dest_conn_id variable.
-
#flags ⇒ byte
Gets the flags variable.
-
#flags=(value) ⇒ Object
Sets the flags variable.
-
#initialize ⇒ UdpHeader
constructor
Instantiate a UdpHeader object.
-
#magic ⇒ uint
Gets the magic variable.
-
#magic=(value) ⇒ Object
Sets the magic variable.
-
#msg_size ⇒ uint
Gets the msg_size variable.
-
#msg_size=(value) ⇒ Object
Sets the msg_size variable.
-
#msg_start_seq ⇒ uint
Gets the msg_start_seq variable.
-
#msg_start_seq=(value) ⇒ Object
Sets the msg_start_seq variable.
-
#packet_type ⇒ EUdpPacketType
Gets the packet_type variable.
-
#packet_type=(value) ⇒ Object
Sets the packet_type variable.
-
#packets_in_msg ⇒ uint
Gets the packets_in_msg variable.
-
#packets_in_msg=(value) ⇒ Object
Sets the packets_in_msg variable.
-
#payload_size ⇒ ushort
Gets the payload_size variable.
-
#payload_size=(value) ⇒ Object
Sets the payload_size variable.
-
#seq_ack ⇒ uint
Gets the seq_ack variable.
-
#seq_ack=(value) ⇒ Object
Sets the seq_ack variable.
-
#seq_this ⇒ uint
Gets the seq_this variable.
-
#seq_this=(value) ⇒ Object
Sets the seq_this variable.
-
#source_conn_id ⇒ uint
Gets the source_conn_id variable.
-
#source_conn_id=(value) ⇒ Object
Sets the source_conn_id variable.
Methods included from SteamSerializable
#consts, #deserialize, #encode_to, #flag, #serialize, #vars
Constructor Details
#initialize ⇒ UdpHeader
Instantiate a UdpHeader object
9 10 11 12 13 14 |
# 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 |
Instance Method Details
#dest_conn_id ⇒ uint
defaults to
Gets the dest_conn_id variable.
95 96 97 |
# File 'lib/steamd/generated/netheader.rb', line 95 def dest_conn_id @variables['dest_conn_id'][:value] end |
#dest_conn_id=(value) ⇒ Object
Sets the dest_conn_id variable.
102 103 104 |
# File 'lib/steamd/generated/netheader.rb', line 102 def dest_conn_id=(value) @variables['dest_conn_id'][:value] = value end |
#flags ⇒ byte
defaults to
Gets the flags variable.
65 66 67 |
# File 'lib/steamd/generated/netheader.rb', line 65 def flags @variables['flags'][:value] end |
#flags=(value) ⇒ Object
Sets the flags variable.
72 73 74 |
# File 'lib/steamd/generated/netheader.rb', line 72 def flags=(value) @variables['flags'][:value] = value end |
#magic ⇒ uint
defaults to UdpHeader::MAGIC
Gets the magic variable.
20 21 22 |
# File 'lib/steamd/generated/netheader.rb', line 20 def magic @variables['magic'][:value] end |
#magic=(value) ⇒ Object
Sets the magic variable.
27 28 29 |
# File 'lib/steamd/generated/netheader.rb', line 27 def magic=(value) @variables['magic'][:value] = value end |
#msg_size ⇒ uint
defaults to
Gets the msg_size variable.
170 171 172 |
# File 'lib/steamd/generated/netheader.rb', line 170 def msg_size @variables['msg_size'][:value] end |
#msg_size=(value) ⇒ Object
Sets the msg_size variable.
177 178 179 |
# File 'lib/steamd/generated/netheader.rb', line 177 def msg_size=(value) @variables['msg_size'][:value] = value end |
#msg_start_seq ⇒ uint
defaults to
Gets the msg_start_seq variable.
155 156 157 |
# File 'lib/steamd/generated/netheader.rb', line 155 def msg_start_seq @variables['msg_start_seq'][:value] end |
#msg_start_seq=(value) ⇒ Object
Sets the msg_start_seq variable.
162 163 164 |
# File 'lib/steamd/generated/netheader.rb', line 162 def msg_start_seq=(value) @variables['msg_start_seq'][:value] = value end |
#packet_type ⇒ EUdpPacketType
defaults to EUdpPacketType::INVALID
Gets the packet_type variable.
50 51 52 |
# File 'lib/steamd/generated/netheader.rb', line 50 def packet_type @variables['packet_type'][:value] end |
#packet_type=(value) ⇒ Object
Sets the packet_type variable.
57 58 59 |
# File 'lib/steamd/generated/netheader.rb', line 57 def packet_type=(value) @variables['packet_type'][:value] = value end |
#packets_in_msg ⇒ uint
defaults to
Gets the packets_in_msg variable.
140 141 142 |
# File 'lib/steamd/generated/netheader.rb', line 140 def packets_in_msg @variables['packets_in_msg'][:value] end |
#packets_in_msg=(value) ⇒ Object
Sets the packets_in_msg variable.
147 148 149 |
# File 'lib/steamd/generated/netheader.rb', line 147 def packets_in_msg=(value) @variables['packets_in_msg'][:value] = value end |
#payload_size ⇒ ushort
defaults to
Gets the payload_size variable.
35 36 37 |
# File 'lib/steamd/generated/netheader.rb', line 35 def payload_size @variables['payload_size'][:value] end |
#payload_size=(value) ⇒ Object
Sets the payload_size variable.
42 43 44 |
# File 'lib/steamd/generated/netheader.rb', line 42 def payload_size=(value) @variables['payload_size'][:value] = value end |
#seq_ack ⇒ uint
defaults to
Gets the seq_ack variable.
125 126 127 |
# File 'lib/steamd/generated/netheader.rb', line 125 def seq_ack @variables['seq_ack'][:value] end |
#seq_ack=(value) ⇒ Object
Sets the seq_ack variable.
132 133 134 |
# File 'lib/steamd/generated/netheader.rb', line 132 def seq_ack=(value) @variables['seq_ack'][:value] = value end |
#seq_this ⇒ uint
defaults to
Gets the seq_this variable.
110 111 112 |
# File 'lib/steamd/generated/netheader.rb', line 110 def seq_this @variables['seq_this'][:value] end |
#seq_this=(value) ⇒ Object
Sets the seq_this variable.
117 118 119 |
# File 'lib/steamd/generated/netheader.rb', line 117 def seq_this=(value) @variables['seq_this'][:value] = value end |
#source_conn_id ⇒ uint
defaults to 512
Gets the source_conn_id variable.
80 81 82 |
# File 'lib/steamd/generated/netheader.rb', line 80 def source_conn_id @variables['source_conn_id'][:value] end |
#source_conn_id=(value) ⇒ Object
Sets the source_conn_id variable.
87 88 89 |
# File 'lib/steamd/generated/netheader.rb', line 87 def source_conn_id=(value) @variables['source_conn_id'][:value] = value end |