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

Method UpdateClientID

src/ClientList.cpp:144–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142
143
144void CClientList::UpdateClientID( CUpDownClient* client, uint32 newID )
145{
146 // Sanity check
147 if ( ( client->GetClientState() != CS_LISTED ) || ( client->GetUserIDHybrid() == newID ) )
148 return;
149
150 // First remove the ID entry
151 RemoveIDFromList( client );
152
153 // Add the new entry
154 m_clientList.insert( IDMapPair( newID, CCLIENTREF(client, "CClientList::UpdateClientID") ) );
155}
156
157
158void CClientList::UpdateClientIP( CUpDownClient* client, uint32 newIP )

Callers 1

SetUserIDHybridMethod · 0.80

Calls 3

GetClientStateMethod · 0.80
insertMethod · 0.80
GetUserIDHybridMethod · 0.45

Tested by

no test coverage detected