mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-03 19:08:15 +00:00
This is mainly a test for the Cap'n'Proto RPC support. Signed-off-by: Thomas Leonard <thomas.leonard@docker.com>
11 lines
277 B
Python
11 lines
277 B
Python
import capnp
|
|
import capnp
|
|
import proto_capnp
|
|
import socket
|
|
s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM, 0)
|
|
s.connect('/tmp/store.sock')
|
|
client = capnp.TwoPartyClient(s)
|
|
store = client.bootstrap().cast_as(proto_capnp.Store)
|
|
r = store.get(['index.html'])
|
|
print r.wait()
|