Searched refs:multicastSocket (Results 1 – 2 of 2) sorted by relevance
46 private final MulticastSocket multicastSocket; field in MdnsSocket59 MulticastSocket multicastSocket, SharedLog sharedLog) throws IOException { in MdnsSocket() argument61 this.multicastSocket = multicastSocket; in MdnsSocket()65 multicastSocket.setTimeToLive(255); in MdnsSocket()75 multicastSocket.setNetworkInterface(networkInterface.getNetworkInterface()); in send()76 multicastSocket.send(packet); in send()81 multicastSocket.receive(packet); in receive()95 multicastSocket.joinGroup(multicastAddress, networkInterface.getNetworkInterface()); in joinGroup()97 multicastSocket.joinGroup( in joinGroup()111 multicastSocket.leaveGroup(multicastAddress, networkInterface.getNetworkInterface()); in leaveGroup()[all …]
102 @Nullable private MdnsSocket multicastSocket; field in MdnsSocketClient134 if (multicastSocket != null) { in startDiscovery()147 multicastSocket = createMdnsSocket(MdnsConstants.MDNS_PORT, sharedLog); in startDiscovery()148 multicastSocket.joinGroup(); in startDiscovery()156 if (multicastSocket != null) { in startDiscovery()157 multicastSocket.close(); in startDiscovery()158 multicastSocket = null; in startDiscovery()176 if (multicastSocket == null && unicastSocket == null) { in stopDiscovery()197 multicastSocket = null; in stopDiscovery()234 socketCreationCallback.onSocketCreated(new SocketKey(multicastSocket.getInterfaceIndex())); in notifyNetworkRequested()[all …]