Change run_forever to use onDisconnect

This commit is contained in:
Jason Paryani
2013-11-18 11:58:03 -08:00
parent 311da1b12f
commit 42da9f4101
2 changed files with 3 additions and 2 deletions

View File

@@ -204,6 +204,8 @@ cdef extern from "capnp/rpc-twoparty.h" namespace " ::capnp":
SERVER" ::capnp::rpc::twoparty::Side::SERVER"
cdef cppclass TwoPartyVatNetwork:
TwoPartyVatNetwork(EventLoop &, AsyncIoStream& stream, Side)
VoidPromise onDisconnect()
VoidPromise onDrain()
RpcSystem makeRpcServer(TwoPartyVatNetwork&, PyRestorer&, EventLoop&)
RpcSystem makeRpcClient(TwoPartyVatNetwork&, EventLoop&)