MCPcopy Create free account
hub / github.com/apache/thrift / readMessageBegin

Method readMessageBegin

lib/php/lib/Protocol/TJSONProtocol.php:595–608  ·  view source on GitHub ↗

* Reads the message header * * @param string $name Function name * @param int $type message type TMessageType::CALL or TMessageType::REPLY * @parem int $seqid The sequence id of this message */

(&$name, &$type, &$seqid)

Source from the content-addressed store, hash-verified

593 * @parem int $seqid The sequence id of this message
594 */
595 public function readMessageBegin(&$name, &$type, &$seqid)
596 {
597 $this->readJSONArrayStart();
598
599 if ($this->readJSONInteger() != self::VERSION) {
600 throw new TProtocolException("Message contained bad version", TProtocolException::BAD_VERSION);
601 }
602
603 $name = $this->readJSONString(false);
604 $type = $this->readJSONInteger();
605 $seqid = $this->readJSONInteger();
606
607 return true;
608 }
609
610 /**
611 * Read the close of message

Callers

nothing calls this directly

Calls 3

readJSONArrayStartMethod · 0.95
readJSONIntegerMethod · 0.95
readJSONStringMethod · 0.95

Tested by

no test coverage detected