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
9575df0c
Commit
9575df0c
authored
Oct 26, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More RPC protocol WIP.
parent
7298c7fa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
rpc.c++
c++/src/capnp/rpc.c++
+0
-0
rpc.h
c++/src/capnp/rpc.h
+5
-5
No files found.
c++/src/capnp/rpc.c++
View file @
9575df0c
This diff is collapsed.
Click to expand it.
c++/src/capnp/rpc.h
View file @
9575df0c
...
...
@@ -67,7 +67,7 @@ public:
virtual
kj
::
Own
<
Connection
>
baseAcceptIntroducedConnection
(
ObjectPointer
::
Reader
recipientId
)
=
0
;
};
virtual
kj
::
Own
<
Connection
>
baseConnectToHostOf
(
ObjectPointer
::
Reader
ref
)
=
0
;
virtual
kj
::
Own
<
Connection
>
baseConnectToHostOf
(
_
::
Struct
Reader
ref
)
=
0
;
virtual
kj
::
Promise
<
kj
::
Own
<
Connection
>>
baseAcceptConnectionAsRefHost
()
=
0
;
};
...
...
@@ -86,7 +86,7 @@ private:
class
Impl
;
kj
::
Own
<
Impl
>
impl
;
Capability
::
Client
baseConnect
(
_
::
StructReader
re
ader
);
Capability
::
Client
baseConnect
(
_
::
StructReader
re
f
);
// TODO(someday): Maybe define a public API called `TypelessStruct` so we don't have to rely
// on `_::StructReader` here?
...
...
@@ -220,7 +220,7 @@ public:
private
:
kj
::
Own
<
_
::
VatNetworkBase
::
Connection
>
baseConnectToHostOf
(
ObjectPointer
::
Reader
ref
)
override
final
;
baseConnectToHostOf
(
_
::
Struct
Reader
ref
)
override
final
;
kj
::
Promise
<
kj
::
Own
<
_
::
VatNetworkBase
::
Connection
>>
baseAcceptConnectionAsRefHost
()
override
final
;
};
...
...
@@ -317,8 +317,8 @@ template <typename SturdyRef, typename ProvisionId, typename RecipientId,
typename
ThirdPartyCapId
,
typename
JoinAnswer
>
kj
::
Own
<
_
::
VatNetworkBase
::
Connection
>
VatNetwork
<
SturdyRef
,
ProvisionId
,
RecipientId
,
ThirdPartyCapId
,
JoinAnswer
>::
baseConnectToHostOf
(
ObjectPointer
::
Reader
ref
)
{
return
connectToHostOf
(
ref
.
getAs
<
SturdyRef
>
(
));
baseConnectToHostOf
(
_
::
Struct
Reader
ref
)
{
return
connectToHostOf
(
typename
SturdyRef
::
Reader
(
ref
));
}
template
<
typename
SturdyRef
,
typename
ProvisionId
,
typename
RecipientId
,
...
...
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