TeamSpeak3/Adapter/ServerQuery.php
protected function syn()
    {
        $this->initTransport($this->options);
        $this->transport->setAdapter($this);

        Profiler::init(spl_object_hash($this));

        if (!$this->getTransport()->readLine()->startsWith(TeamSpeak3::READY)) {
            throw new Ts3Exception("invalid reply from the server");
        }

        Signal::getInstance()->emit("serverqueryConnected", $this);
    }
protected function syn()
    {
        $this->initTransport($this->options);
        $this->transport->setAdapter($this);

        Profiler::init(spl_object_hash($this));

        if (!$this->getTransport()->readLine()->startsWith(TeamSpeak3::READY)) {
            throw new Ts3Exception("invalid reply from the server");
        }

        Signal::getInstance()->emit("serverqueryConnected", $this);
    }
Connects the AbstractTransport object and performs initial actions on the remote
server.

@throws Ts3Exception
@return void