Update event_socket.php
This commit is contained in:
parent
10d23b7dd4
commit
7c3675107d
|
|
@ -108,7 +108,7 @@ class event_socket {
|
|||
if ($port == '') { $port = '8021'; }
|
||||
if ($password == '') { $password = 'ClueCon'; }
|
||||
|
||||
$fp = @socket_connect($host, $port, $errno, $errdesc, 3);
|
||||
$fp = @fsockopen($host, $port, $errno, $errdesc, 3);
|
||||
|
||||
if (!$fp) {
|
||||
return false;
|
||||
|
|
@ -198,3 +198,5 @@ function event_socket_request($fp, $cmd) {
|
|||
|
||||
// $fp = event_socket_create('127.0.0.1', 8021, 'ClueCon');
|
||||
// print(event_socket_request($fp, 'api sofia status'));
|
||||
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue