def __init__(self, parameters=None, on_open_callback=None, reconnection_strategy=None): # Let the developer know we could not import SSL if parameters.ssl and not SSL: raise Exception("SSL specified but it is not available") # Call our parent's __init__ Connection.__init__(self, parameters, on_open_callback, reconnection_strategy)
def __init__(self, parameters=None, on_open_callback=None, reconnection_strategy=None): # Set our defaults self.fd = None self.ioloop = None self.socket = None # Event states (base and current) self.base_events = READ | ERROR self.event_state = self.base_events # Call our parent's __init__ Connection.__init__(self, parameters, on_open_callback, reconnection_strategy)
def __init__(self, parameters=None, on_open_callback=None, reconnection_strategy=None): # Let the developer know we could not import SSL if parameters.ssl and not SSL: raise Exception("SSL specified but it is not available") # Set our defaults self.fd = None self.ioloop = None self.socket = None # Event states (base and current) self.base_events = READ | ERROR self.event_state = self.base_events # Call our parent's __init__ Connection.__init__(self, parameters, on_open_callback, reconnection_strategy)