def __init__(self, host, port, callback=None, gains=None, high_speed=True, daisy=False):
    asyncore.dispatcher.__init__(self)
    self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
    self.set_reuse_addr()
    self.bind((host, port))
    self.daisy = daisy
    self.listen(5)
    self.callback = None
    self.handler = None
    self.parser = ParseRaw(gains=gains)
    self.high_speed = high_speed
def __init__(self, host, port, callback=None, gains=None, high_speed=True, daisy=False):
    asyncore.dispatcher.__init__(self)
    self.create_socket(socket.AF_INET, socket.SOCK_STREAM)
    self.set_reuse_addr()
    self.bind((host, port))
    self.daisy = daisy
    self.listen(5)
    self.callback = None
    self.handler = None
    self.parser = ParseRaw(gains=gains)
    self.high_speed = high_speed