Lines Matching refs:resp
383 $resp = $this->decodePacketHeader($packet);
384 $resp['content'] = '';
385 if ($resp['contentLength']) {
386 $len = $resp['contentLength'];
389 $resp['content'] .= $buf;
392 if ($resp['paddingLength']) {
393 $buf = fread($this->_sock, $resp['paddingLength']);
395 return $resp;
417 $resp = $this->readPacket();
418 if ($resp['type'] == self::GET_VALUES_RESULT) {
419 return $this->readNvpair($resp['content'], $resp['length']);
535 $resp = $this->readPacket();
537 if ($resp['type'] == self::STDOUT || $resp['type'] == self::STDERR) {
538 if ($resp['type'] == self::STDERR) {
539 $this->_requests[$resp['requestId']]['state'] = self::REQ_STATE_ERR;
541 $this->_requests[$resp['requestId']]['response'] .= $resp['content'];
543 if ($resp['type'] == self::END_REQUEST) {
544 $this->_requests[$resp['requestId']]['state'] = self::REQ_STATE_OK;
545 if ($resp['requestId'] == $requestId) {
554 } while ($resp);
556 if (!is_array($resp)) {
578 switch (ord($resp['content']{4})) {