public function clientRecvObject($recv) { $data = $this->msgpackDecode($recv); $type = $data[0]; $code = $data[1]; $sets = $data[2]; $errs = $data[3]; if ($type != 1) { throw new Exception($this->errorMessage02); } $feature = new MessagePackRPC_Future(); $feature->setErrors($errs); $feature->setResult($sets); return $feature; }
public function clientRecvObject($data) { $type = $data[0]; $code = $data[1]; $errs = $data[2]; $sets = $data[3]; if ($type != 1) { throw new MessagePackRPC_Error_ProtocolError("Invalid message type for response: {$type}"); } $feature = new MessagePackRPC_Future(); $feature->setErrors($errs); $feature->setResult($sets); return $feature; }