Giter VIP home page Giter VIP logo

Comments (1)

iyangsj avatar iyangsj commented on May 20, 2024

@wwwllg 感谢你的关注和建议!

你可以参考 https://tquic.net/zh/docs/getting_started/demo 文档说明,运行提供的示例程序。不过目前示例程序tquic_client只支持下载及保存文件。使用简述如下:

  • 执行如下命令启动tquic_server
./tquic_server -c cert.crt -k cert.key -l 127.0.0.1:8443

注意, tquic_server位于编译输出目录./target/release/, 使用到的 cert.crt/cert.key文件可从目录./src/tls/testdata/中拷贝

  • 执行如下命令使用tquic_client 下载文件
mkdir tmp
./tquic_client --connect-to 127.0.0.1:8443 https://example.org/libtquic.a --dump-path tmp/

这里tquic_client将获取并下载tquic_server基目录中libtquic.a文件,保存在tmp/ 目录中

如果想自行开发,可以进一步参考 https://tquic.net/zh/docs/tutorial/rust/ 使用流程。
源码中也提供了一个简单的C语言示例程序 https://github.com/Tencent/tquic/blob/develop/apps/src/bin/simple_server.c

如果你还是遇到问题,可以将具体的问题截图、诊断日志发出来。(运行tquic_client/tquic_server指定 --log-level trace 或 --log-level debug可以输出详细诊断日志)

from tquic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.