'ControlSocketFile constructor.
:param str socket_path: path where the control socket is located
: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, path='/var/run/tor/control', connect=True):

    super(ControlSocketFile, self).__init__()
    self._socket_path = path
    if connect:
        self.connect()
