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 = []
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)
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
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)
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, }, }
def __init__(self, *args, **kwargs): Client.__init__(self, *args, **kwargs) self.callbacks = {}