* Checks if the specified server is the one we are connected to. */
| 866 | * Checks if the specified server is the one we are connected to. |
| 867 | */ |
| 868 | static 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 | |
| 881 | bool CDownloadQueue::SendNextUDPPacket() |
no test coverage detected