protected function syn()
  {
    $this->initTransport($this->options);
    $this->transport->setAdapter($this);

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

    $rdy = $this->getTransport()->readLine();

    if(!$rdy->startsWith(TeamSpeak3::TS3_PROTO_IDENT) && !$rdy->startsWith(TeamSpeak3::TEA_PROTO_IDENT) && !(defined("CUSTOM_PROTO_IDENT") && $rdy->startsWith(CUSTOM_PROTO_IDENT)))
    {
      throw new AdapterException("invalid reply from the server (" . $rdy . ")");
    }

    Signal::getInstance()->emit("serverqueryConnected", $this);
  }