tree: 114f44743da4208c85590fdabf4bae807873506f [path history] [tgz]
  1. quic_bug_tracker.h
  2. quic_client_stats.h
  3. quic_default_proof_providers.h
  4. quic_epoll.h
  5. quic_expect_bug.h
  6. quic_export.h
  7. quic_exported_stats.h
  8. quic_flag_utils.h
  9. quic_flags.h
  10. quic_hostname_utils.h
  12. quic_ip_address.h
  13. quic_ip_address_family.h
  15. quic_logging.h
  16. quic_mutex.h
  17. quic_server_stats.h
  19. quic_socket_address.h
  21. quic_stack_trace.h
  22. quic_test.h
  23. quic_test_loopback.h
  24. quic_test_output.h
  25. quic_testvalue.h
  26. quic_thread.h
  27. quic_udp_socket_platform_api.h

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.


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