MCPcopy Create free account
hub / github.com/amule-project/amule / UpdateClientIP

Method UpdateClientIP

src/ClientList.cpp:158–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156
157
158void 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
173void CClientList::UpdateClientHash( CUpDownClient* client, const CMD4Hash& newHash )

Callers 1

SetIPMethod · 0.80

Calls 3

GetClientStateMethod · 0.80
insertMethod · 0.80
GetIPMethod · 0.45

Tested by

no test coverage detected