Пример #1
0
 def __init__(self,
              address,
              socket,
              remote,
              handsets,
              relays,
              stacks,
              authkeys,
              ws_cfg,
              adoption,
              fdtx_path,
              hsl_paths=None,
              alloc=True,
              autoshare=False,
              home=None,
              slow_down=0):
     Broker.__init__(self,
                     address,
                     socket,
                     remote,
                     authkeys,
                     stacks,
                     ws_cfg,
                     adoption,
                     fdtx_path,
                     hsl_paths,
                     home,
                     logging=False)
     self.handsets = handsets
     self.relays = relays
     self.alloc = alloc
     self.autoshare = autoshare
     self.slow_down = slow_down
Пример #2
0
 def __init__(self, adoption=None, fdtx_path=None):
     Broker.__init__(self, adoption=adoption, fdtx_path=fdtx_path)
     self.input = open('/dev/null', 'r')
     self.output = open(LOG_PATH, mode='a+', buffering=0)