示例#1
0
 def __init__(self, router, interface, serveraddr, **kwargs):
     '''
     Client side for EJForward protocol. Takes server address as constructor arg.
     '''
     Client.__init__(self, router, interface, **kwargs)
     self.serveraddr = serveraddr
     self._status = {}
     self._status_callbacks = []
示例#2
0
 def __init__(self,
              router,
              interface,
              target,
              encryptor_cache=None,
              make_jack=True):
     Client.__init__(self, router, interface, encryptor_cache, make_jack)
     self.target = py_address(target)
示例#3
0
 def __init__(self,
              router,
              interface,
              filename,
              message="",
              encryptor_cache=None,
              make_jack=True):
     Client.__init__(self, router, interface, encryptor_cache, make_jack)
     self.filename = filename
     self.message = message
示例#4
0
 def __init__(self,
              router,
              interface,
              controller,
              filter='.*',
              encryptor_cache=None,
              make_jack=True):
     Client.__init__(self, router, interface, encryptor_cache, make_jack)
     self.controller = py_address(controller)
     self.set_filter(filter)
示例#5
0
 def __init__(self, router, interface, **kwargs):
     Client.__init__(self, router, interface, **kwargs)
     self.client_data = {}
     self.default_data = {
         'messages': {},
         'chopping_block': [],
         'status': {
             'total_count': 1000,
             'total_space': 32 * 1024,  # 32kb of space default
             'used_count': 0,
             'used_space': 0,
         },
     }
示例#6
0
 def __init__(self, *args, **kwargs):
     Client.__init__(self, *args, **kwargs)
     self.callbacks = {}