src/TeamSpeak3/Adapter/ServerQuery.php
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);
  }
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);
  }
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 ) ; }
Connects the Transport object and performs initial actions on the remote
server.

@throws AdapterException
@return void
Connects the Transport object and performs initial actions on the remote server .