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
eda17e08
Commit
eda17e08
authored
Oct 17, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RPC protocol implementation WIP.
parent
edea0aab
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
0 deletions
+12
-0
object.c++
c++/src/capnp/object.c++
+3
-0
object.h
c++/src/capnp/object.h
+2
-0
pointer-helpers.h
c++/src/capnp/pointer-helpers.h
+7
-0
rpc.c++
c++/src/capnp/rpc.c++
+0
-0
rpc.h
c++/src/capnp/rpc.h
+0
-0
No files found.
c++/src/capnp/object.c++
View file @
eda17e08
...
...
@@ -36,6 +36,9 @@ kj::Own<const ClientHook> ObjectPointer::Reader::getPipelinedCap(
for
(
auto
&
op
:
ops
)
{
switch
(
op
.
type
)
{
case
PipelineOp
:
:
Type
::
NOOP
:
break
;
case
PipelineOp
:
:
Type
::
GET_POINTER_FIELD
:
pointer
=
pointer
.
getStruct
(
nullptr
).
getPointerField
(
op
.
pointerIndex
*
POINTERS
);
break
;
...
...
c++/src/capnp/object.h
View file @
eda17e08
...
...
@@ -47,6 +47,8 @@ struct PipelineOp {
// Corresponds to rpc.capnp's PromisedAnswer.Op.
enum
Type
{
NOOP
,
// for convenience
GET_POINTER_FIELD
// There may be other types in the future...
...
...
c++/src/capnp/pointer-helpers.h
View file @
eda17e08
...
...
@@ -55,6 +55,13 @@ struct PointerHelpers<T, Kind::STRUCT> {
static
inline
Orphan
<
T
>
disown
(
PointerBuilder
builder
)
{
return
Orphan
<
T
>
(
builder
.
disown
());
}
static
inline
_
::
StructReader
getInternalReader
(
const
typename
T
::
Reader
&
reader
)
{
// TODO(cleanup): This is used by RpcSystem::Connect, but perhaps it should be used more
// broadly so that we can reduce the number of friends declared by every Reader type.
return
reader
.
_reader
;
}
};
template
<
typename
T
>
...
...
c++/src/capnp/rpc.c++
0 → 100644
View file @
eda17e08
This diff is collapsed.
Click to expand it.
c++/src/capnp/rpc.h
0 → 100644
View file @
eda17e08
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