Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
bfa8e397
Commit
bfa8e397
authored
9 years ago
by
Jason Paryani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow TwoPartyClient to define a bootstrap interface
parent
b0599220
master
v0.7.0
v0.6.1
v0.6.0
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
rpc-twoparty.c++
c++/src/capnp/rpc-twoparty.c++
+6
-0
rpc-twoparty.h
c++/src/capnp/rpc-twoparty.h
+1
-0
No files found.
c++/src/capnp/rpc-twoparty.c++
View file @
bfa8e397
...
...
@@ -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
>
();
...
...
This diff is collapsed.
Click to expand it.
c++/src/capnp/rpc-twoparty.h
View file @
bfa8e397
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment