|
|
@ -1,5 +1,7 @@ |
|
|
|
<?php |
|
|
|
<?php |
|
|
|
# |
|
|
|
# |
|
|
|
|
|
|
|
# See function sendsockreply($fun, $msg) at the end |
|
|
|
|
|
|
|
# |
|
|
|
# Note that $port in AF_UNIX should be the socket filename |
|
|
|
# Note that $port in AF_UNIX should be the socket filename |
|
|
|
function _getsock($fun, $port, $unix=true) |
|
|
|
function _getsock($fun, $port, $unix=true) |
|
|
|
{ |
|
|
|
{ |
|
|
@ -144,10 +146,12 @@ function sendsock($fun, $msg) |
|
|
|
} |
|
|
|
} |
|
|
|
return $ret; |
|
|
|
return $ret; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
# |
|
|
|
# This is the only function in here you call |
|
|
|
# This is the only function in here you call |
|
|
|
# You pass it a string $fun for debugging |
|
|
|
# You pass it a string $fun for debugging |
|
|
|
# and the data $msg to send to ckdb |
|
|
|
# and the data $msg to send to ckdb |
|
|
|
# and it returns $ret = false on error or $ret = the string reply |
|
|
|
# and it returns $ret = false on error or $ret = the string reply |
|
|
|
|
|
|
|
# |
|
|
|
function sendsockreply($fun, $msg) |
|
|
|
function sendsockreply($fun, $msg) |
|
|
|
{ |
|
|
|
{ |
|
|
|
$ret = false; |
|
|
|
$ret = false; |
|
|
|