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

Method GetServerKeyUDP

src/Server.cpp:303–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303uint32 CServer::GetServerKeyUDP(bool bForce) const
304{
305 if ((m_dwIPServerKeyUDP != 0 && m_dwIPServerKeyUDP == theApp->GetPublicIP()) || bForce) {
306 return m_dwServerKeyUDP;
307 } else {
308 return 0;
309 }
310}
311
312void CServer::SetServerKeyUDP(uint32 dwServerKeyUDP)
313{

Callers 4

SaveServerMetMethod · 0.80
OnPacketReceivedMethod · 0.80
SendPacketMethod · 0.80

Calls 1

GetPublicIPMethod · 0.45

Tested by

no test coverage detected