tree: ce45313e90c9d4ffd05d4fd170d3f129d6fa1b0e [path history] [tgz]
  1. README.md
  2. quic_aligned.h
  3. quic_arraysize.h
  4. quic_bbr2_sender.h
  5. quic_bug_tracker.h
  6. quic_cert_utils.h
  7. quic_client_stats.h
  8. quic_clock.cc
  9. quic_clock.h
  10. quic_containers.h
  11. quic_containers_test.cc
  12. quic_default_proof_providers.h
  13. quic_endian.h
  14. quic_endian_test.cc
  15. quic_epoll.h
  16. quic_epoll_test_tools.h
  17. quic_error_code_wrappers.h
  18. quic_estimate_memory_usage.h
  19. quic_expect_bug.h
  20. quic_export.h
  21. quic_exported_stats.h
  22. quic_fallthrough.h
  23. quic_file_utils.cc
  24. quic_file_utils.h
  25. quic_flag_utils.h
  26. quic_flags.h
  27. quic_fuzzed_data_provider.h
  28. quic_hostname_utils.cc
  29. quic_hostname_utils.h
  30. quic_hostname_utils_test.cc
  31. quic_iovec.h
  32. quic_ip_address.cc
  33. quic_ip_address.h
  34. quic_ip_address_family.h
  35. quic_ip_address_test.cc
  36. quic_logging.h
  37. quic_macros.h
  38. quic_map_util.h
  39. quic_mem_slice.h
  40. quic_mem_slice_span.h
  41. quic_mem_slice_span_test.cc
  42. quic_mem_slice_storage.h
  43. quic_mem_slice_storage_test.cc
  44. quic_mem_slice_test.cc
  45. quic_mock_log.h
  46. quic_mutex.cc
  47. quic_mutex.h
  48. quic_optional.h
  49. quic_pcc_sender.h
  50. quic_port_utils.h
  51. quic_prefetch.h
  52. quic_ptr_util.h
  53. quic_reference_counted.h
  54. quic_reference_counted_test.cc
  55. quic_server_stats.h
  56. quic_sleep.h
  57. quic_socket_address.cc
  58. quic_socket_address.h
  59. quic_socket_address_test.cc
  60. quic_stack_trace.h
  61. quic_str_cat.h
  62. quic_str_cat_test.cc
  63. quic_stream_buffer_allocator.h
  64. quic_string_piece.h
  65. quic_string_utils.h
  66. quic_string_utils_test.cc
  67. quic_system_event_loop.h
  68. quic_test.h
  69. quic_test_loopback.cc
  70. quic_test_loopback.h
  71. quic_test_mem_slice_vector.h
  72. quic_test_output.h
  73. quic_text_utils.h
  74. quic_text_utils_test.cc
  75. quic_thread.h
  76. quic_uint128.h
quic/platform/api/README.md

QUIC platform API

This directory contains the infrastructure blocks needed to support QUIC in certain platform. These APIs act as interaction layers between QUIC core and either the upper layer application (i.e. Chrome, Envoy) or the platform‘s own infrastructure (i.e. logging, test framework and system IO). QUIC core needs the implementations of these APIs to build and function appropriately. There is unidirectional dependency from QUIC core to most of the APIs here, such as QUIC_LOG and QuicMutex, but a few APIs also depend back on QUIC core’s basic QUIC data types, such as QuicClock and QuicSleep.

  • APIs used by QUIC core:

    Most APIs are used by QUIC core to interact with platform infrastructure (i.e. QUIC_LOG) or to wrap around platform dependent data types (i.e. QuicThread), the dependency is:

application -> quic_core -> quic_platform_api
      |                             |
      v                             v
platform_infrastructure <- quic_platform_impl
  • APIs used by applications:

    Some APIs are used by applications to interact with QUIC core (i.e. QuicMemSlice). For such APIs, their dependency model is:

application -> quic_core -> quic_platform_api
    |                            ^
    |                            |
     -------------------> quic_platform_impl
    |                            |
    |                            v
     -------------------> platform_infrastructure

        An example for such dependency is QuicClock.

        Or

application -> quic_core -> quic_platform_api
    |                            ^
    |                            |
    |                            v
     -------------------> quic_platform_impl
    |                            |
    |                            v
     -------------------> platform_infrastructure

        An example for such dependency is QuicMemSlice.

Documentation of each API and its usage.

QuicMemSlice : QuicMemSlice is used to wrap application data and pass to QUIC stream‘s write interface. It refers to a memory block of data which should be around till QuicMemSlice::Reset() is called. It’s upto each platform, to implement it as reference counted or not.

QuicClock : QuicClock is used by QUIC core to get current time. Its instance is created by applications and passed into QuicDispatcher and QuicConnectionHelperInterface.

TODO(b/131224336) add document for other APIs