Changeset View
Changeset View
Standalone View
Standalone View
src/org/kde/kdeconnect/Backends/LanBackend/LanLink.java
Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Line(s) | |||||
48 | 48 | | |||
49 | public class LanLink extends BaseLink { | 49 | public class LanLink extends BaseLink { | ||
50 | 50 | | |||
51 | public interface LinkDisconnectedCallback { | 51 | public interface LinkDisconnectedCallback { | ||
52 | void linkDisconnected(LanLink brokenLink); | 52 | void linkDisconnected(LanLink brokenLink); | ||
53 | } | 53 | } | ||
54 | 54 | | |||
55 | public enum ConnectionStarted { | 55 | public enum ConnectionStarted { | ||
56 | Locally, Remotely; | 56 | Locally, Remotely | ||
57 | }; | 57 | } | ||
58 | 58 | | |||
59 | private ConnectionStarted connectionSource; // If the other device sent me a broadcast, | 59 | private ConnectionStarted connectionSource; // If the other device sent me a broadcast, | ||
60 | // I should not close the connection with it | 60 | // I should not close the connection with it | ||
61 | // because it's probably trying to find me and | 61 | // because it's probably trying to find me and | ||
62 | // potentially ask for pairing. | 62 | // potentially ask for pairing. | ||
63 | 63 | | |||
64 | private volatile Socket socket = null; | 64 | private volatile Socket socket = null; | ||
65 | 65 | | |||
▲ Show 20 Lines • Show All 236 Lines • Show Last 20 Lines |