def __init__(self, host, port=defaultport, autoconnect=True, timeout=defaulttimeout): Stream.__init__(self, autoconnect=False) self.host = host self.port = port self.timeout = timeout self.safe = True if autoconnect: self.connect()
def __init__(self, host, port=defaultport, autoconnect=True, timeout=defaulttimeout): Stream.__init__(self, autoconnect=False) self.tdelay = 0 self.host = host self.port = port self.timeout = timeout self.safe = True # set these to numerical values so find_time_range is not triggered # and so called to min and max in read_event don't throw errors self._mintime = float('inf') self._maxtime = float('-inf') if autoconnect: self.connect()