protected function start(Reader $args)
    {
        $this->versionMajor = $args->readOctet();
        $this->versionMinor = $args->readOctet();
        $this->serverProperties = $args->readTable();
        $this->mechanisms = explode(" ", $args->readLongstr());
        $this->locales = explode(" ", $args->readLongstr());

        if ($this->debug) {
            Helper::debugMsg(
                sprintf(
                    'Start from server, version: %d.%d, properties: %s, ' .
                        'mechanisms: %s, locales: %s',
                    $this->versionMajor,
                    $this->versionMinor,
                    self::dumpTable($this->serverProperties),
                    implode(', ', $this->mechanisms),
                    implode(', ', $this->locales)
                )
            );
        }
    }
protected function start(Reader $args)
    {
        $this->versionMajor = $args->readOctet();
        $this->versionMinor = $args->readOctet();
        $this->serverProperties = $args->readTable();
        $this->mechanisms = explode(" ", $args->readLongstr());
        $this->locales = explode(" ", $args->readLongstr());

        if ($this->debug) {
            Helper::debugMsg(
                sprintf(
                    'Start from server, version: %d.%d, properties: %s, ' .
                        'mechanisms: %s, locales: %s',
                    $this->versionMajor,
                    $this->versionMinor,
                    self::dumpTable($this->serverProperties),
                    implode(', ', $this->mechanisms),
                    implode(', ', $this->locales)
                )
            );
        }
    }
protected function start ( Reader $ args ) { $ this -> versionMajor = $ args -> readOctet ( ) ; $ this -> versionMinor = $ args -> readOctet ( ) ; $ this -> serverProperties = $ args -> readTable ( ) ; $ this -> mechanisms = explode ( " " , $ args -> readLongstr ( ) ) ; $ this -> locales = explode ( " " , $ args -> readLongstr ( ) ) ; if ( $ this -> debug ) { Helper :: debugMsg ( sprintf ( 'Start from server, version: %d.%d, properties: %s, ' . 'mechanisms: %s, locales: %s' , $ this -> versionMajor , $ this -> versionMinor , self :: dumpTable ( $ this -> serverProperties ) , implode ( ', ' , $ this -> mechanisms ) , implode ( ', ' , $ this -> locales ) ) ) ; } }
start connection negotiation
start connection negotiation