Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C capnproto
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 136
    • Issues 136
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 47
    • Merge requests 47
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Cap'n Proto
  • capnproto
  • Merge requests
  • !1564

EzRpc: extend interface to support arbitrary streams

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Jonas Vautherin requested to merge github/fork/JonasVautherin/ezrpc-arbitrary-asynciostream into master Oct 18, 2022
  • Overview 2
  • Commits 5
  • Pipelines 0
  • Changes 7

TL;DR: The whole point is the new API in ez-rpc.h, check it first, no need to review the rest if the API is bad 👍.

This is an exploration around the EzRpc API, to see if it can be extended to support arbitrary streams (enabling e.g. tls, gzip, websocket). It adds:

  • An EzRpcClient constructor without a stream, which can be set later with EzRpcClient.setStream()
  • A constructor to create an "empty" EzRpcServer (without a stream and without an acceptLoop)
  • An EzRpcServer.addStream() function to add streams to the server object (those streams can come from an external acceptLoop).

@kentonv: I really don't want to lose your time with stupid propositions, so feel free to close if this seems useless/convoluted 😅.

Note: pretty sure I messed up with the PromiseAndFulfiller, happy to get advice there 😇.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/JonasVautherin/ezrpc-arbitrary-asynciostream