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
422b6a27
Commit
422b6a27
authored
Jan 03, 2018
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate RealmGateway in favor of membranes.
parent
146298f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
3 deletions
+36
-3
rpc.h
c++/src/capnp/rpc.h
+36
-3
No files found.
c++/src/capnp/rpc.h
View file @
422b6a27
...
...
@@ -167,7 +167,18 @@ template <typename VatId, typename ProvisionId, typename RecipientId,
typename
ExternalRef
=
_
::
ExternalRefFromRealmGatewayClient
<
RealmGatewayClient
>>
RpcSystem
<
VatId
>
makeRpcServer
(
VatNetwork
<
VatId
,
ProvisionId
,
RecipientId
,
ThirdPartyCapId
,
JoinResult
>&
network
,
Capability
::
Client
bootstrapInterface
,
RealmGatewayClient
gateway
);
Capability
::
Client
bootstrapInterface
,
RealmGatewayClient
gateway
)
CAPNP_DEPRECATED
(
"Please transition to using MembranePolicy instead of RealmGateway."
);
// ** DEPRECATED **
//
// This uses a RealmGateway to create a membrane between the external network and internal
// capabilites to translate save() requests. However, MembranePolicy (membrane.h) allows for the
// creation of much more powerful membranes and doesn't need to be tied to an RpcSystem.
// Applications should transition to using membranes instead of RealmGateway. RealmGateway will be
// removed in a future version of Cap'n Proto.
//
// Original description:
//
// Make an RPC server for a VatNetwork that resides in a different realm from the application.
// The given RealmGateway is used to translate SturdyRefs between the app's ("internal") format
// and the network's ("external") format.
...
...
@@ -186,7 +197,18 @@ template <typename VatId, typename ProvisionId, typename RecipientId,
typename
ExternalRef
=
_
::
ExternalRefFromRealmGatewayClient
<
RealmGatewayClient
>>
RpcSystem
<
VatId
>
makeRpcServer
(
VatNetwork
<
VatId
,
ProvisionId
,
RecipientId
,
ThirdPartyCapId
,
JoinResult
>&
network
,
BootstrapFactory
<
VatId
>&
bootstrapFactory
,
RealmGatewayClient
gateway
);
BootstrapFactory
<
VatId
>&
bootstrapFactory
,
RealmGatewayClient
gateway
)
CAPNP_DEPRECATED
(
"Please transition to using MembranePolicy instead of RealmGateway."
);
// ** DEPRECATED **
//
// This uses a RealmGateway to create a membrane between the external network and internal
// capabilites to translate save() requests. However, MembranePolicy (membrane.h) allows for the
// creation of much more powerful membranes and doesn't need to be tied to an RpcSystem.
// Applications should transition to using membranes instead of RealmGateway. RealmGateway will be
// removed in a future version of Cap'n Proto.
//
// Original description:
//
// Make an RPC server that can serve different bootstrap interfaces to different clients via a
// BootstrapInterface and communicates with a different realm than the application is in via a
// RealmGateway.
...
...
@@ -232,7 +254,18 @@ template <typename VatId, typename ProvisionId, typename RecipientId,
typename
ExternalRef
=
_
::
ExternalRefFromRealmGatewayClient
<
RealmGatewayClient
>>
RpcSystem
<
VatId
>
makeRpcClient
(
VatNetwork
<
VatId
,
ProvisionId
,
RecipientId
,
ThirdPartyCapId
,
JoinResult
>&
network
,
RealmGatewayClient
gateway
);
RealmGatewayClient
gateway
)
CAPNP_DEPRECATED
(
"Please transition to using MembranePolicy instead of RealmGateway."
);
// ** DEPRECATED **
//
// This uses a RealmGateway to create a membrane between the external network and internal
// capabilites to translate save() requests. However, MembranePolicy (membrane.h) allows for the
// creation of much more powerful membranes and doesn't need to be tied to an RpcSystem.
// Applications should transition to using membranes instead of RealmGateway. RealmGateway will be
// removed in a future version of Cap'n Proto.
//
// Original description:
//
// Make an RPC client for a VatNetwork that resides in a different realm from the application.
// The given RealmGateway is used to translate SturdyRefs between the app's ("internal") format
// and the network's ("external") format.
...
...
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