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