original_string: 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);
    }
code: 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);
    }
code_tokens: 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 ) ; }
docstring: Connects the Transport object and performs initial actions on the remote
  server.
  
  @throws AdapterException
  @return void
docstring_tokens: Connects the Transport object and performs initial actions on the remote server .