private function getTransport()
    {
        switch ($this->transport)
        {
            case 'stream':
                return new Transport\Stream($this->host, $this->port);

            case 'curl':
            default:
                return new Transport\Curl($this->host, $this->port);
        }
    }