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

Method GetNextServer

src/ServerList.cpp:580–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

578
579
580CServer* CServerList::GetNextServer(bool bOnlyObfuscated)
581{
582 while (bOnlyObfuscated && (m_serverpos != m_servers.end()) && !((*m_serverpos)->SupportsObfuscationTCP() || (*m_serverpos)->SupportsObfuscationUDP())) {
583 wxASSERT(*m_serverpos != NULL);
584 ++m_serverpos;
585 }
586
587 if (m_serverpos == m_servers.end()) {
588 return 0;
589 } else {
590 if (*m_serverpos) {
591 return *m_serverpos++;
592 } else {
593 return 0;
594 }
595 }
596}
597
598
599CServer* CServerList::GetNextStatServer()

Callers 2

ConnectToAnyServerMethod · 0.80

Calls 3

endMethod · 0.45

Tested by

no test coverage detected