tree: 636e9bf46ed4b81cd21b3f9098e2b2a72d7d8216 [path history] [tgz]
  1. BUILD.zircon.gn
  2. OWNERS
  3. README.md
  4. builder.cc
  5. decoding_and_validating.cc
  6. encoding.cc
  7. epitaph.c
  8. formatting.cc
  9. handle_close_many.cc
  10. handle_closing.cc
  11. include/
  12. internal.c
  13. llcpp_async_binding.cc
  14. llcpp_async_transaction.cc
  15. llcpp_client_base.cc
  16. llcpp_coding.c
  17. llcpp_message.cc
  18. llcpp_server.cc
  19. llcpp_transaction.cc
  20. message.cc
  21. message_buffer.cc
  22. message_builder.cc
  23. txn_header.c
  24. validate_string.cc
  25. walker.cc
zircon/system/ulib/fidl/README.md

The C and C++ fidl library

This library provides the runtime for FIDL C/C++ family of bindings. This primarily means the definitions of the message encoding and decoding functions. This also includes the definitions of fidl data types such as vectors and strings.

Creating FIDL server connections

See fidl::BindServer() functions at server.h.

This implementation allows for multiple in-flight transactions and supports multi-threaded dispatchers. Using the ToAsync() on completers will not stop this implementation from receiving other messages on the bound channel. This is useful for implementing fully asynchronous servers and in particular allows for FIDL hanging-get patterns to be implemented such that a “Watch” method does not block every other transaction in the channel.

The implementation also supports synchronous multi-threaded servers via the EnableNextDispatch() call on the Sync completer. EnableNextDispatch() enables another thread (on a multi-threaded dispatcher) to handle the next message on a bound channel in parallel. More complex use-cases combining synchronous and asynchronous behavior are also supported.