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

Function IsConnectedServer

src/DownloadQueue.cpp:868–878  ·  view source on GitHub ↗

* Checks if the specified server is the one we are connected to. */

Source from the content-addressed store, hash-verified

866 * Checks if the specified server is the one we are connected to.
867 */
868static bool IsConnectedServer(const CServer* server)
869{
870 if (server && theApp->serverconnect->GetCurrentServer()) {
871 wxString srvAddr = theApp->serverconnect->GetCurrentServer()->GetAddress();
872 uint16 srvPort = theApp->serverconnect->GetCurrentServer()->GetPort();
873
874 return server->GetAddress() == srvAddr && server->GetPort() == srvPort;
875 }
876
877 return false;
878}
879
880
881bool CDownloadQueue::SendNextUDPPacket()

Callers 1

SendNextUDPPacketMethod · 0.85

Calls 2

GetCurrentServerMethod · 0.45
GetPortMethod · 0.45

Tested by

no test coverage detected