117 // ------------------------------------------------------------------------------------------------- |
117 // ------------------------------------------------------------------------------------------------- |
118 // |
118 // |
119 METHOD |
119 METHOD |
120 RCONSession::handle_packet (Bytestream& packet, const IPAddress& from) -> void |
120 RCONSession::handle_packet (Bytestream& packet, const IPAddress& from) -> void |
121 { |
121 { |
|
122 if (from != m_address) |
|
123 return; |
|
124 |
122 try |
125 try |
123 { |
126 { |
124 while (packet.bytes_left() > 0) |
127 while (packet.bytes_left() > 0) |
125 { |
128 { |
126 int header = packet.read_byte(); |
129 int header = packet.read_byte(); |