Comments (1)
@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)
- 有server支持多线程 的例子吗 HOT 6
- Streams may starve when multiple streams coexist in incremental scheduling HOT 2
- Support PMTU discovery HOT 1
- Add tquic to the 'quic-interop-runner' ? HOT 1
- Build relase/v0.5.0:`error: failed to select a version for the requirement `tquic = "^0.4.0"`` HOT 2
- Change "IPv4Addr" to "IPv6Addr" in the comments.
- Some enhancements for tquic_client HOT 1
- link of CONTRIBUTING in English version is ZH
- build fails on windows HOT 1
- Support Windows platform
- 如何才能做到keep alive功能 HOT 1
- Adjust dependence which only used in test
- Deferring idle timeout
- Docs missing exact command to reproduce the benchmark results HOT 1
- 怎么和nginx在一起配置使用 HOT 1
- 发送数据包可能存在问题 HOT 2
- 建议调整一下参数类型 HOT 1
- 弱网环境下的点对点视频传输 HOT 2
- 那个后续会支持 Java 和 其他语言的调用吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tquic.