Skip to content

Commit

Permalink
Merge pull request #381 from tarasfrompir/alpha
Browse files Browse the repository at this point in the history
Заменил очередь опроса на устройства
  • Loading branch information
sergejey committed Nov 7, 2018
2 parents d5c4b59 + d84a26e commit 78e7ff7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/app_player/addons/dnla.addon.php
Expand Up @@ -183,9 +183,9 @@ function search() {
$request .= 'ST: ssdp:all'."\r\n";
$request .= 'USER-AGENT: Majordomo/ver-x.x UDAP/2.0 Win/7'."\r\n";
$request .= "\r\n";


@socket_sendto($socket, $request, strlen($request), 0, '255.255.255.255', 1900);
@socket_sendto($socket, $request, strlen($request), 0, '239.255.255.250', 1900);
@socket_sendto($socket, $request, strlen($request), 0, '255.255.255.255', 1900);

// send the data from socket
socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array('sec'=>'1', 'usec'=>'128'));
Expand Down

0 comments on commit 78e7ff7

Please sign in to comment.