Example #1
0
 def __init__(self,id,path,name,arg,timeout=30000):
     async.Deferred.__init__(self)
     piw.rpcclient.__init__(self)
     arg = piw.makestring_len(arg,len(arg),0)
     name = piw.makestring(name,0)
     piw.tsd_rpcclient(self,id.as_string(),path.make_normal(),name,arg,timeout)
     self.py_lock()
Example #2
0
 def __completed(self, token, status, arg):
     arg = piw.makestring_len(arg, len(arg), 0)
     self.completed(token, status, arg)
Example #3
0
def invoke_async_rpc(id, name, arg, timeout=30000):
    (addr, path) = paths.breakid(id)
    arg = piw.makestring_len(arg, len(arg), 0)
    name = piw.makestring(name, 0)
    piw.tsd_rpcasync(addr.as_string(), path.make_normal(), name, arg, timeout)