'ControlPort constructor.
:param str address: ip address of the controller
:param int port: port number of the controller
:param bool connect: connects to the socket if True, leaves it unconnected otherwise
:raises: :class:`stem.SocketError` if connect is **True** and we\'re
unable to establish a connection'

def __init__(self, address='127.0.0.1', port=9051, connect=True):

    super(ControlPort, self).__init__()
    self._control_addr = address
    self._control_port = port
    if connect:
        self.connect()
