public function getSocket($host, $port, $secretKey = null, $version = null) {
        $socket = Mage::getModel('turpentine/varnish_admin_socket',
            array('host' => $host, 'port' => $port));
        if ($secretKey) {
            $socket->setAuthSecret($secretKey);
        }
        if ($version) {
            $socket->setVersion($version);
        }
        return $socket;
    }