protected function _writeHeader()
{
$this->_writeByte($this->opCode);
$this->_writeInt($this->_transport->getSessionId());
$token = $this->_transport->getToken();
/*
* we must recognize dbOpen and Connect messages
*/
if (!$this instanceof DbOpen && !$this instanceof Connect && $this->_transport->isRequestToken()) {
$this->_writeString($token);
}
}