kdeconnect-kde/core/backends/lan
Simon Redman c7579eb170 Fix LanLinkProviderTest on Windows
## Summary
LanLinkProviderTest fails on Windows. This patch fixes that.

I believe the root cause is that we are using a shared UDP socket to listen for identity broadcasts both in the LanLinkProvider and in the test. Apparently this works on Linux, but on Windows the LanLinkProvider picks up its own identity packet and pairs with itself.

This patch gives a parameter to LanLinkProvider to allow it to listen and broadcast on different ports, then uses that ability in the test to make the test pass on Windows.

## Test Plan

### Before:
lanlinkprovider test fails, first because it can't bind its UDP listener socket, and then because Windows seems to handle shared sockets differently than Linux, so the UDP broadcasts were not reaching the test's listener.

### After:
lanlinkprovider test seems to pass reliably both in my Windows VM and in the CI
2019-06-05 15:14:50 +00:00
..
CMakeLists.txt Combine multiple upload jobs into a single KCompositeJob so only 1 notification will be shown 2018-11-30 08:26:00 +01:00
compositeuploadjob.cpp Tweak Upload job finished notification 2019-03-31 19:19:28 +00:00
compositeuploadjob.h Replace http GNU urls with https 2019-03-23 17:29:26 +01:00
landevicelink.cpp Replace http GNU urls with https 2019-03-23 17:29:26 +01:00
landevicelink.h Replace http GNU urls with https 2019-03-23 17:29:26 +01:00
lanlinkprovider.cpp Fix LanLinkProviderTest on Windows 2019-06-05 15:14:50 +00:00
lanlinkprovider.h Fix LanLinkProviderTest on Windows 2019-06-05 15:14:50 +00:00
lanpairinghandler.cpp Replace http GNU urls with https 2019-03-23 17:29:26 +01:00
lanpairinghandler.h Replace http GNU urls with https 2019-03-23 17:29:26 +01:00
server.cpp Replace http GNU urls with https 2019-03-23 17:29:26 +01:00
server.h Replace http GNU urls with https 2019-03-23 17:29:26 +01:00
socketlinereader.cpp Replace http GNU urls with https 2019-03-23 17:29:26 +01:00
socketlinereader.h Replace http GNU urls with https 2019-03-23 17:29:26 +01:00
uploadjob.cpp Replace http GNU urls with https 2019-03-23 17:29:26 +01:00
uploadjob.h Replace http GNU urls with https 2019-03-23 17:29:26 +01:00