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
880041bb
Commit
880041bb
authored
May 04, 2015
by
Kenton Varda
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #201 from jparyani/add-bootstrap-twopartyclient
Allow TwoPartyClient to define a bootstrap interface
parents
0c0ed1d3
bfa8e397
Show 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 @
880041bb
...
...
@@ -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
>
();
...
...
c++/src/capnp/rpc-twoparty.h
View file @
880041bb
...
...
@@ -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.
...
...
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