10000 RPC Threading · protobuf-c/protobuf-c Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Kevin Lyda edited this page Feb 16, 2014 · 3 revisions

How to use protobuf-c's RPC in a Multithreading Environment

Introduction

protobuf-c's RPC was designed with "main-loop" style concurrency -- meaning we can handle multiple connections, but we handle them by multiplexing on I/O (in the form of file descriptors), rather than spawning new threads.

Currently there are many restrictions for using RPC with multiple threads, but it can be done. There are also things we wish to do eventually, if they can be done pretty cleanly.

How to Use a Protobuf-C Server with Threads

...

How to Use a Protobuf-C Client with Threads

...

TODO: Server

...

TODO: Client

  • blocking client
  • ...
Clone this wiki locally
0