app/code/community/Nexcessnet/Turpentine/Helper/Varnish.php
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;
    }
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;
    }
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 ; }
Get a Varnish management socket

@param  string $host           [description]
@param  string|int $port           [description]
@param  string $secretKey [description]
@param  string $version   [description]
@return Nexcessnet_Turpentine_Model_Varnish_Admin_Socket
Get a Varnish management socket