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
6ca992b3
Commit
6ca992b3
authored
Jun 03, 2014
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tweak
parent
18d10d23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
cxxrpc.md
doc/cxxrpc.md
+1
-1
No files found.
doc/cxxrpc.md
View file @
6ca992b3
...
...
@@ -389,6 +389,7 @@ int main(int argc, const char* argv[]) {
// Set up the EzRpcServer, binding to port 5923 unless a
// different port was specified by the user.
capnp::EzRpcServer server(argv
[
1
]
, 5923);
auto& waitScope = server.getWaitScope();
// Export a capability under the name "foo". Note that the
// second parameter here can be any "Client" object or anything
...
...
@@ -396,7 +397,6 @@ int main(int argc, const char* argv[]) {
// re-export a capability imported from another server.
server.exportCap("foo", kj::heap
<MyInterfaceImpl>
());
auto& waitScope = server.getWaitScope();
// Run forever, accepting connections and handling requests.
kj::NEVER_DONE.wait(waitScope);
}
...
...
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