Permalink
Browse files

Merge pull request #275 from tarasfrompir/master

Update Core.php
  • Loading branch information...
T-REX-XP committed Sep 12, 2018
2 parents d1cf2d7 + 7330dff commit 35b6627e3640d7e344ec2f16b8943a329bb993b8
Showing with 2 additions and 0 deletions.
  1. +2 −0 modules/ssdp_finder/upnp/vendor/jalder/upnp/src/Core.php
@@ -43,6 +43,8 @@ public function search($st = 'ssdp:all', $mx = 2, $man = 'ssdp:discover', $from
$request .= "\r\n";
$socket = socket_create(AF_INET, SOCK_DGRAM, 0);
socket_set_option($socket, SOL_SOCKET, SO_BROADCAST, true);
socket_sendto($socket, $request, strlen($request), 0, '239.255.255.250', 1900);
socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array('sec'=>$sockTimout, 'usec'=>'50'));
socket_sendto($socket, $request, strlen($request), 0, '255.255.255.255', 1900);
socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array('sec'=>$sockTimout, 'usec'=>'50'));
$response = array();

0 comments on commit 35b6627

Please sign in to comment.