| 413 | |
| 414 | |
| 415 | CUpDownClient* CClientList::FindClientByIP( uint32 clientip, uint16 port ) |
| 416 | { |
| 417 | // Find all items with the specified ip |
| 418 | std::pair<IDMap::iterator, IDMap::iterator> range = m_ipList.equal_range( clientip ); |
| 419 | |
| 420 | for ( ; range.first != range.second; ++range.first ) { |
| 421 | CUpDownClient* cur_client = range.first->second.GetClient(); |
| 422 | // Check if it's actually the client we want |
| 423 | if ( cur_client->GetUserPort() == port ) { |
| 424 | return cur_client; |
| 425 | } |
| 426 | } |
| 427 | |
| 428 | return NULL; |
| 429 | } |
| 430 | |
| 431 | |
| 432 | CUpDownClient* CClientList::FindClientByIP( uint32 clientip ) |
no test coverage detected