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()
|
||||
{
|
||||
if ($this->bytesRead === $this->responseSize) {
|
||||
|
|
Loading…
Reference in New Issue