'Return attribute values of internal, dummy socket.
Some attributes and methods are disabled to prevent the
socket from connecting to the network.
Arguments:
name -- Name of the attribute requested.'

def __getattr__(self, name):

    def dummy(*args):
        'Method    to    do    nothing    and    prevent    actual    socket    connections.'
        return None
    overrides = {'connect': dummy, 'close': dummy, 'shutdown': dummy}
    return overrides.get(name, getattr(self.socket, name))
