Add higher-level TCP client socket/factory support to QUICHE

Added some basic interfaces that could be used to abstract away implementation details of socket operations, including a SocketFactory that allows initiation details like QuicEventLoop to be hidden away from code interacting with it and creating/running sockets.  Especially helpful to pass factory objects to code that doesn't need to know details around the event/async libraries in use or need to stay agnostic between them to build on multiple plaforms/environments.

Interfaces support my current needs (TCP client sockets), but left them deliberately open to future expansion to server sockets or UDP, etc.  Created a QuicEventLoop-based implementation of the interfaces.

PiperOrigin-RevId: 466366913
11 files changed
tree: 1ccd9dc9c69741216726354a2a8764966da02792
  1. build/
  2. quiche/
  3. .bazelrc
  4. BUILD.bazel
  5. CONTRIBUTING.md
  6. LICENSE
  7. README.md
  8. WHITESPACE
  9. WORKSPACE.bazel
README.md

QUICHE

QUICHE stands for QUIC, Http, Etc. It is Google‘s production-ready implementation of QUIC, HTTP/2, HTTP/3, and related protocols and tools. It powers Google’s servers, Chromium, Envoy, and other projects. It is actively developed and maintained.

There are two public QUICHE repositories. Either one may be used by embedders, as they are automatically kept in sync:

To embed QUICHE in your project, platform APIs need to be implemented and build files need to be created. Note that it is on the QUICHE team's roadmap to include default implementation for all platform APIs and to open-source build files. In the meanwhile, take a look at open source embedders like Chromium and Envoy to get started:

To contribute to QUICHE, follow instructions at CONTRIBUTING.md.

QUICHE is only supported on little-endian platforms.