TeamSpeak3/Adapter/AbstractAdapter.php
protected function initTransport($options, $transport = "TCP")
    {
        if (!is_array($options)) {
            throw new Ts3Exception("transport parameters must provided in an array");
        }
        if($transport == "TCP")
            $this->transport = new TCP($options);
        else
            $this->transport = new UDP($options);
    }
protected function initTransport($options, $transport = "TCP")
    {
        if (!is_array($options)) {
            throw new Ts3Exception("transport parameters must provided in an array");
        }
        if($transport == "TCP")
            $this->transport = new TCP($options);
        else
            $this->transport = new UDP($options);
    }
Loads the transport object object used for the connection adapter and passes a given set
of options.

@param  array $options
@param  string $transport
@throws Ts3Exception
@return void