Add ability to pass Restorer to RpcClient. Also various fixups

and added __dir__ reflection to DynamicCapabilityClient
This commit is contained in:
Jason Paryani
2013-11-13 10:58:16 -08:00
parent 5251cb5575
commit 11543b7abf
5 changed files with 82 additions and 15 deletions

View File

@@ -22,7 +22,7 @@ def example_simple_rpc():
write_stream = capnp.FdAsyncIoStream(write.fileno())
restorer = capnp.Restorer(capability.TestSturdyRefObjectId, _restore)
server = capnp.RpcServer(loop, restorer, write_stream)
server = capnp.RpcServer(loop, write_stream, restorer)
client = capnp.RpcClient(loop, read_stream)
ref = capability.TestSturdyRefObjectId.new_message()