protected function sendCommand($cmd)
    {
        if ($this->shutdown) {
            throw new Exception('This server has been shut down');
        }

        fwrite($this->conn,
               $cmd . "\r\n",
               Connection::stringLength($cmd . "\r\n"));
    }
protected function sendCommand($cmd)
    {
        if ($this->shutdown) {
            throw new Exception('This server has been shut down');
        }

        fwrite($this->conn,
               $cmd . "\r\n",
               Connection::stringLength($cmd . "\r\n"));
    }
protected function sendCommand ( $ cmd ) { if ( $ this -> shutdown ) { throw new Exception ( 'This server has been shut down' ) ; } fwrite ( $ this -> conn , $ cmd . "\r\n" , Connection :: stringLength ( $ cmd . "\r\n" ) ) ; }
Send a command.

@param string $cmd The command to send

@throws \MHlavac\Gearman\Exception
Send a command .