示例#1
0
 /**
  * @return \Beanie\Command\Response
  */
 public function invoke()
 {
     $responseLine = $this->socket->readLine(Server::EOL);
     return $this->responseParser->parseResponse(substr($responseLine, 0, strlen($responseLine) - Server::EOL_LENGTH), $this->server);
 }
示例#2
0
文件: Server.php 项目: zwilias/beanie
 protected function ensureConnected()
 {
     if (!$this->socket->isConnected()) {
         $this->connect();
     }
 }