/** * Writes the message header. * Prepends the service name to the function name, separated by <code>TMultiplexedProtocol::SEPARATOR</code>. * * @param string $name Function name. * @param int $type Message type. * @param int $seqid The sequence id of this message. */ public function writeMessageBegin($name, $type, $seqid) { if ($type == TMessageType::CALL || $type == TMessageType::ONEWAY) { $nameWithService = $this->serviceName_ . self::SEPARATOR . $name; parent::writeMessageBegin($nameWithService, $type, $seqid); } else { parent::writeMessageBegin($name, $type, $seqid); } }
public function __construct(TProtocol $protocol, $fname, $mtype, $rseqid) { parent::__construct($protocol); $this->fname_ = $fname; $this->mtype_ = $mtype; $this->rseqid_ = $rseqid; }