You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/**
* Open MulticastSocket and bind to Ssdp port.
*
* @param options
*/
private void openAndBindSocket(SsdpClientOptions options) {
try {
//There is no need to set a UDP send port here, as some devices do not respond to the SSDP query protocol after 1900. If other ports are set, also check if the ports are available. Here, the system can randomly specify a port
this.clientSocket = new MulticastSocket(options.getBindingPort());
this.clientSocket.setReuseAddress(true);
interfaces = Utils.getMulticastInterfaces();
joinGroupOnAllInterfaces(SsdpParams.getSsdpMulticastAddress(), options.getIgnoreInterfaceDiscoveryErrors());
} catch (IOException e) {
callback.onFailed(e);
}
}
The text was updated successfully, but these errors were encountered:
//There is no need to set a UDP send port here, as some devices do not respond to the SSDP query protocol after 1900. If other ports are set, also check if the ports are available. Here, the system can randomly specify a port
this.clientSocket = new MulticastSocket(options.getBindingPort());
this.clientSocket.setReuseAddress(true);
interfaces = Utils.getMulticastInterfaces();
joinGroupOnAllInterfaces(SsdpParams.getSsdpMulticastAddress(), options.getIgnoreInterfaceDiscoveryErrors());
} catch (IOException e) {
callback.onFailed(e);
}
}
The text was updated successfully, but these errors were encountered: