mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
Livestatus\Connection: fetch row from socket...
...basically just calling readLine, but splitting columns
This commit is contained in:
parent
e755b37af3
commit
e1cdd30c93
@ -257,6 +257,15 @@ class Connection
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function fetchRowFromSocket()
|
||||||
|
{
|
||||||
|
$line = $this->readLineFromSocket();
|
||||||
|
if (! $line) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return $this->splitLine($line);
|
||||||
|
}
|
||||||
|
|
||||||
protected function readLineFromSocket()
|
protected function readLineFromSocket()
|
||||||
{
|
{
|
||||||
if ($this->bytesRead === $this->responseSize) {
|
if ($this->bytesRead === $this->responseSize) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user