* 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)
| 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 |
nothing calls this directly
no test coverage detected