tree: 785663d6ce07fcadb8de582e4a6466458bc92a49 [path history] [tgz]
  1. include/
  2. BUILD.zircon.gn
  3. builder.cc
  4. decoding_and_validating.cc
  5. encoding.cc
  6. epitaph.c
  7. formatting.cc
  8. handle_close_many.cc
  9. handle_closing.cc
  10. internal.c
  11. llcpp_async_binding.cc
  12. llcpp_async_transaction.cc
  13. llcpp_client_base.cc
  14. llcpp_coding.c
  15. llcpp_message.cc
  16. llcpp_server.cc
  17. llcpp_transaction.cc
  18. message.cc
  19. message_buffer.cc
  20. message_builder.cc
  21. OWNERS
  22. README.md
  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.