'Connect to the current SAMP Hub on localhost:web_port
Parameters
pool_size : int, optional
The number of socket connections opened to communicate with the
Hub.'

def connect(self, pool_size=20, web_port=21012):

    self._connected = False
    try:
        self.proxy = ServerProxyPool(pool_size, xmlrpc.ServerProxy, 'http://127.0.0.1:{0}'.format(web_port), allow_none=1)
        self.ping()
        self._connected = True
    except xmlrpc.ProtocolError as p:
        raise SAMPHubError('Protocol    Error    {}:    {}'.format(p.errcode, p.errmsg))
