public function serverSelectByPort($port, $virtual = null)
  {
    if($this->whoami !== null && $this->serverSelectedPort() == $port) return;

    $virtual = ($virtual !== null) ? $virtual : $this->start_offline_virtual;
    $getargs = func_get_args();

    $this->execute("use", array("port" => $port, $virtual ? "-virtual" : null));

    if($port != 0 && $this->predefined_query_name !== null)
    {
      $this->execute("clientupdate", array("client_nickname" => (string) $this->predefined_query_name));
    }

    $this->whoamiReset();

    $this->setStorage("_server_use", array(__FUNCTION__, $getargs));

    \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\Signal::getInstance()->emit("notifyServerselected", $this);
  }
public function serverSelectByPort($port, $virtual = null)
  {
    if($this->whoami !== null && $this->serverSelectedPort() == $port) return;

    $virtual = ($virtual !== null) ? $virtual : $this->start_offline_virtual;
    $getargs = func_get_args();

    $this->execute("use", array("port" => $port, $virtual ? "-virtual" : null));

    if($port != 0 && $this->predefined_query_name !== null)
    {
      $this->execute("clientupdate", array("client_nickname" => (string) $this->predefined_query_name));
    }

    $this->whoamiReset();

    $this->setStorage("_server_use", array(__FUNCTION__, $getargs));

    \ManiaLivePlugins\Standard\TeamSpeak\TeamSpeak3\Helper\Signal::getInstance()->emit("notifyServerselected", $this);
  }
public function serverSelectByPort ( $ port , $ virtual = null ) { if ( $ this -> whoami !== null && $ this -> serverSelectedPort ( ) == $ port ) return ; $ virtual = ( $ virtual !== null ) ? $ virtual : $ this -> start_offline_virtual ; $ getargs = func_get_args ( ) ; $ this -> execute ( "use" , array ( "port" => $ port , $ virtual ? "-virtual" : null ) ) ; if ( $ port != 0 && $ this -> predefined_query_name !== null ) { $ this -> execute ( "clientupdate" , array ( "client_nickname" => ( string ) $ this -> predefined_query_name ) ) ; } $ this -> whoamiReset ( ) ; $ this -> setStorage ( "_server_use" , array ( __FUNCTION__ , $ getargs ) ) ; \ ManiaLivePlugins \ Standard \ TeamSpeak \ TeamSpeak3 \ Helper \ Signal :: getInstance ( ) -> emit ( "notifyServerselected" , $ this ) ; }
Selects a virtual server by UDP port to allow further interaction.

@param  integer $port
@param  boolean $virtual
@return void
Selects a virtual server by UDP port to allow further interaction .