예제 #1
0
 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;
 }
예제 #2
0
파일: Back.php 프로젝트: ngmoco/msgpack-rpc
 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;
 }