protected function recvCommand()
    {
        $ret = '';
        while (true) {
            $data = fgets($this->conn, 4096);
            $this->checkForError($data);
            if ($data == ".\n") {
                break;
            }

            $ret .= $data;
        }

        return $ret;
    }
protected function recvCommand()
    {
        $ret = '';
        while (true) {
            $data = fgets($this->conn, 4096);
            $this->checkForError($data);
            if ($data == ".\n") {
                break;
            }

            $ret .= $data;
        }

        return $ret;
    }
protected function recvCommand ( ) { $ ret = '' ; while ( true ) { $ data = fgets ( $ this -> conn , 4096 ) ; $ this -> checkForError ( $ data ) ; if ( $ data == ".\n" ) { break ; } $ ret .= $ data ; } return $ ret ; }
Receive a response.

For most commands Gearman returns a bunch of lines and ends the
transmission of data with a single line of ".\n". This command reads
in everything until ".\n". If the command being sent is NOT ended with
".\n" DO NOT use this command.

@throws \MHlavac\Gearman\Exception

@return string
Receive a response .