Commit bfa8e397 authored by Jason Paryani's avatar Jason Paryani

Allow TwoPartyClient to define a bootstrap interface

parent b0599220
......@@ -179,6 +179,12 @@ TwoPartyClient::TwoPartyClient(kj::AsyncIoStream& connection)
: network(connection, rpc::twoparty::Side::CLIENT),
rpcSystem(makeRpcClient(network)) {}
TwoPartyClient::TwoPartyClient(kj::AsyncIoStream& connection,
Capability::Client bootstrapInterface)
: network(connection, rpc::twoparty::Side::CLIENT),
rpcSystem(network, bootstrapInterface) {}
Capability::Client TwoPartyClient::bootstrap() {
MallocMessageBuilder message(4);
auto vatId = message.getRoot<rpc::twoparty::VatId>();
......
......@@ -134,6 +134,7 @@ class TwoPartyClient {
public:
explicit TwoPartyClient(kj::AsyncIoStream& connection);
TwoPartyClient(kj::AsyncIoStream& connection, Capability::Client bootstrapInterface);
Capability::Client bootstrap();
// Get the server's bootstrap interface.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment