MyGit
🚩收到GitHub仓库的更新通知

alibaba/xquic

Fork: 320 Star: 1604 (更新于 2024-04-12 23:43:19)

license: Apache-2.0

Language: C .

XQUIC Library released by Alibaba is a cross-platform implementation of QUIC and HTTP/3 protocol.

最后发布版本: v1.7.1 ( 2024-03-19 17:26:26)

GitHub网址

✨免费申请网站SSL证书,支持多域名和泛域名,点击查看

XQUIC

xquic logo

GitHub Build CodeQL Codacy Badge Codacy Badge Platforms

简体中文文档 README-zh-CN

Introduction

XQUIC Library released by Alibaba is …

a client and server implementation of QUIC and HTTP/3 as specified by the IETF. Currently supported QUIC versions are v1 and draft-29.

OS and platform agnostic. It currently supports Android, iOS, Linux, macOS and Windows(v1.2.0). Most of the code is used in our own products, and has been tested at scale on android, iOS apps, as well as servers.

still in active development. Interoperability is regularly tested with other QUIC implementations.

Features

Standardized Features

  • All big features conforming with RFC 9000, RFC9001, RFC9002, RFC9114 and RFC9204, including the interface between QUIC and TLS, 0-RTT connection establishment, HTTP/3 and QPACK.

  • ALPN Extension conforming with RFC7301

Not Yet Standardized Features

Library Features

  • Pluggable congestion control: NewReno, Cubic, BBR and BBRv2, ...

  • Pluggable cryptography, integration with BoringSSL and BabaSSL

  • Cross-platform implementation, support Android, iOS, Linux, macOS and Windows(v1.2.0)

Requirements

To build XQUIC, you need

  • CMake
  • BoringSSL or BabaSSL

To run test cases, you need

  • libevent
  • CUnit

QuickStart Guide

XQUIC can be built with Tongsuo(BabaSSL) or BoringSSL.

Build with BoringSSL

# get XQUIC source code
git clone https://github.com/alibaba/xquic.git
cd xquic

# get and build BoringSSL
git clone https://github.com/google/boringssl.git ./third_party/boringssl
cd ./third_party/boringssl
mkdir -p build && cd build
cmake -DBUILD_SHARED_LIBS=0 -DCMAKE_C_FLAGS="-fPIC" -DCMAKE_CXX_FLAGS="-fPIC" ..
make ssl crypto
cd ..
SSL_TYPE_STR="boringssl"
SSL_PATH_STR="${PWD}"
cd ../..
## Note: if you don’t have golang in your environment, please install [golang](https://go.dev/doc/install) first. 

# build XQUIC with BoringSSL
# When build XQUIC with boringssl, /usr/local/babassl directory will be searched
# as default. if boringssl is deployed in other directories, SSL_PATH could be 
# used to specify the search path of boringssl
git submodule update --init --recursive
mkdir -p build; cd build
cmake -DGCOV=on -DCMAKE_BUILD_TYPE=Debug -DXQC_ENABLE_TESTING=1 -DXQC_SUPPORT_SENDMMSG_BUILD=1 -DXQC_ENABLE_EVENT_LOG=1 -DXQC_ENABLE_BBR2=1 -DXQC_ENABLE_RENO=1 -DSSL_TYPE=${SSL_TYPE_STR} -DSSL_PATH=${SSL_PATH_STR} ..

# exit if cmake error
if [ $? -ne 0 ]; then
    echo "cmake failed"
    exit 1
fi

make -j

Build with BabaSSL(Tongsuo)

# get XQUIC source code
git clone https://github.com/alibaba/xquic.git
cd xquic

# get and build BabaSSL(Tongsuo)
git clone -b 8.3-stable https://github.com/Tongsuo-Project/Tongsuo.git ./third_party/babassl
cd ./third_party/babassl/
./config --prefix=/usr/local/babassl
make -j
SSL_TYPE_STR="babassl"
SSL_PATH_STR="${PWD}"
cd -

# build XQUIC with BabaSSL
# When build XQUIC with boringssl, /usr/local/babassl directory will be searched
# as default. if boringssl is deployed in other directories, SSL_PATH could be 
# used to specify the search path of boringssl
git submodule update --init --recursive
mkdir -p build; cd build
cmake -DGCOV=on -DCMAKE_BUILD_TYPE=Debug -DXQC_ENABLE_TESTING=1 -DXQC_SUPPORT_SENDMMSG_BUILD=1 -DXQC_ENABLE_EVENT_LOG=1 -DXQC_ENABLE_BBR2=1 -DXQC_ENABLE_RENO=1 -DSSL_TYPE=${SSL_TYPE_STR} -DSSL_PATH=${SSL_PATH_STR} ..

# exit if cmake error
if [ $? -ne 0 ]; then
    echo "cmake failed"
    exit 1
fi

make -j

Run testcases

sh ../scripts/xquic_test.sh

Documentation

Contributing

We would love for you to contribute to XQUIC and help make it even better than it is today! All types of contributions are encouraged and valued. Thanks to all contributors. See our Contributing Guidelines for more information.

If you have any questions, please feel free to open a new Discussion topic in our discussion forums.

License

XQUIC is released under the Apache 2.0 License.

Contact Us

Feel free to contact us in the following ways:

最近版本更新:(数据更新于 2024-04-13 15:56:42)

2024-03-19 17:26:26 v1.7.1

2023-12-18 23:38:00 v1.7.0

2023-11-15 14:19:04 v1.6.3

2023-10-12 19:03:26 v1.6.2

2023-07-12 21:50:00 v1.6.0

2023-05-24 12:01:46 v1.5.0

2023-02-27 15:33:35 v1.4.0

2022-11-08 11:56:13 v1.3.0-beta

2022-08-29 11:29:35 multipath-draft-01-beta.1

2022-08-26 12:59:03 v1.2.0-stable

主题(topics):

http3, ietf, protocol, quic, tls13

alibaba/xquic同语言 C最近更新仓库

2024-04-29 12:16:57 lizongying/my-tv

2024-04-28 10:28:49 EdgeTX/edgetx

2024-04-28 09:55:01 betaflight/betaflight

2024-04-25 23:28:38 citusdata/citus

2024-04-25 22:27:12 NVIDIA/open-gpu-kernel-modules

2024-04-25 14:40:13 mkj/dropbear