| 156 | |
| 157 | |
| 158 | void CClientList::UpdateClientIP( CUpDownClient* client, uint32 newIP ) |
| 159 | { |
| 160 | // Sanity check |
| 161 | if ( ( client->GetClientState() != CS_LISTED ) || ( client->GetIP() == newIP ) ) |
| 162 | return; |
| 163 | |
| 164 | // Remove the old IP entry |
| 165 | RemoveIPFromList( client ); |
| 166 | |
| 167 | if ( newIP ) { |
| 168 | m_ipList.insert( IDMapPair( newIP, CCLIENTREF(client, "CClientList::UpdateClientIP") ) ); |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | |
| 173 | void CClientList::UpdateClientHash( CUpDownClient* client, const CMD4Hash& newHash ) |
no test coverage detected