sources/network/rconsession.cpp

changeset 29
e534f2f78196
parent 27
089e37c0887e
child 31
b5b5a6a96d91
equal deleted inserted replaced
28:3cc042af3090 29:e534f2f78196
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();

mercurial