Standard/TeamSpeak/TeamSpeak3/Adapter/Update.php
public function syn()
  {
    if(!isset($this->options["host"]) || empty($this->options["host"])) $this->options["host"] = $this->default_host;
    if(!isset($this->options["port"]) || empty($this->options["port"])) $this->options["port"] = $this->default_port;

    $this->initTransport($this->options, '\ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Transport\UDP');
    $this->transport->setAdapter($this);

    \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\Profiler::init(spl_object_hash($this));

    $this->getTransport()->send(\ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\String::fromHex(32));

    if(!preg_match_all("/,?(\d+),?/", $this->getTransport()->read(32), $matches) || !isset($matches[1]))
    {
      throw new Update\Exception("invalid reply from the server");
    }

    $this->build_numbers = $matches[1];

    \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\Signal::getInstance()->emit("updateConnected", $this);
  }
public function syn()
  {
    if(!isset($this->options["host"]) || empty($this->options["host"])) $this->options["host"] = $this->default_host;
    if(!isset($this->options["port"]) || empty($this->options["port"])) $this->options["port"] = $this->default_port;

    $this->initTransport($this->options, '\ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Transport\UDP');
    $this->transport->setAdapter($this);

    \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\Profiler::init(spl_object_hash($this));

    $this->getTransport()->send(\ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\String::fromHex(32));

    if(!preg_match_all("/,?(\d+),?/", $this->getTransport()->read(32), $matches) || !isset($matches[1]))
    {
      throw new Update\Exception("invalid reply from the server");
    }

    $this->build_numbers = $matches[1];

    \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\Signal::getInstance()->emit("updateConnected", $this);
  }
Connects the TeamSpeak3_Transport_Abstract object and performs initial actions on the remote
server.

@throws Update\Exception
@return void