|
|
@ -95,10 +95,15 @@ class Daemon |
|
|
|
//接收客户端发送的数据 |
|
|
|
//接收客户端发送的数据 |
|
|
|
$receive = socket_read($client, $this->config_daemon['SOCKET_READ_LENGTH']); |
|
|
|
$receive = socket_read($client, $this->config_daemon['SOCKET_READ_LENGTH']); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$type = 'detect'; |
|
|
|
|
|
|
|
$content = ''; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!empty($receive)) { |
|
|
|
$receive = unserialize($receive); |
|
|
|
$receive = unserialize($receive); |
|
|
|
|
|
|
|
|
|
|
|
$type = $receive['type']; |
|
|
|
$type = $receive['type']; |
|
|
|
$content = $receive['content']; |
|
|
|
$content = $receive['content']; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//console模式 |
|
|
|
//console模式 |
|
|
|
if ($this->workMode == 'console') { |
|
|
|
if ($this->workMode == 'console') { |
|
|
|