Livestatus\Connection: fetch row from socket...

...basically just calling readLine, but splitting columns
This commit is contained in:
Thomas Gelf 2014-11-16 16:00:03 +01:00
parent e755b37af3
commit e1cdd30c93
1 changed files with 9 additions and 0 deletions

View File

@ -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) {