Code Monkey home page Code Monkey logo

y123456yz / reading-and-annotate-quic Goto Github PK

View Code? Open in Web Editor NEW
308.0 35.0 106.0 189.27 MB

quic、prot_quic、goquic、libquic源码中文注释分析,增加C++ quic-client和quic-server example 程序,便于快速掌握学习谷歌quic库源码和学习quic协议,作为新的网络加速协议,可以根据实际需要应用于自己的工程项目中。把google quic源码和goquic合并到一个工程编译安装

Makefile 8.26% Go 2.67% C 37.02% C++ 30.72% Shell 0.06% CMake 2.74% Perl 8.67% Assembly 9.10% Python 0.34% CSS 0.01% Objective-C++ 0.27% Objective-C 0.15% Gnuplot 0.01% Ruby 0.01% Dockerfile 0.01%
libquic goquic quic prot-quic

reading-and-annotate-quic's People

Contributors

y123456yz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

reading-and-annotate-quic's Issues

注释的中文是 gb2312 编码

我是 Mac 用户,我打开源码注释后发现是乱码,尝试用 iconv 转换后才可以显示,如果有需要我提供一个将所有源码转成 utf8 编码的脚本

求助

使用如下代码会出现:segment fault。望你给出建议。十分感谢。
void quic_s_delete(void* server_object)
{
QuicServer* server = server_object;
printf(" quic_s_deleteting \n");

if(NULL != server->out_going_stream)
{

	server->out_going_stream->CloseConnection(QUIC_NO_ERROR);
}

server->Shutdown();
delete server;

编译libquic错误

你好,感谢您的共享精神。
在编译libquic时出现以下错误:
reading-and-annotate-quic-master/libquic-client-server-example/libquic/boringssl/crypto/bio/socket_helper.c: In function ‘bio_ip_and_port_to_socket_and_addr’: /media/hades/9905208B845F2513/Code/reading-and-annotate-quic-master/libquic-client-server-example/libquic/boringssl/crypto/bio/socket_helper.c:42:19: error: storage size of ‘hint’ isn’t known struct addrinfo hint, *result, *cur; ^~~~ /media/hades/9905208B845F2513/Code/reading-and-annotate-quic-master/libquic-client-server-example/libquic/boringssl/crypto/bio/socket_helper.c:51:9: error: implicit declaration of function ‘getaddrinfo’ [-Werror=implicit-function-declaration] ret = getaddrinfo(hostname, port_str, &hint, &result); ^~~~~~~~~~~ /media/hades/9905208B845F2513/Code/reading-and-annotate-quic-master/libquic-client-server-example/libquic/boringssl/crypto/bio/socket_helper.c:54:27: error: implicit declaration of function ‘gai_strerror’; did you mean ‘strerror’? [-Werror=implicit-function-declaration] ERR_add_error_data(2, gai_strerror(ret)); ^~~~~~~~~~~~ strerror /media/hades/9905208B845F2513/Code/reading-and-annotate-quic-master/libquic-client-server-example/libquic/boringssl/crypto/bio/socket_helper.c:60:36: error: dereferencing pointer to incomplete type ‘struct addrinfo’ for (cur = result; cur; cur = cur->ai_next) { ^~ /media/hades/9905208B845F2513/Code/reading-and-annotate-quic-master/libquic-client-server-example/libquic/boringssl/crypto/bio/socket_helper.c:79:3: error: implicit declaration of function ‘freeaddrinfo’ [-Werror=implicit-function-declaration] freeaddrinfo(result); ^~~~~~~~~~~~ /media/hades/9905208B845F2513/Code/reading-and-annotate-quic-master/libquic-client-server-example/libquic/boringssl/crypto/bio/socket_helper.c:42:19: error: unused variable ‘hint’ [-Werror=unused-variable] struct addrinfo hint, *result, *cur; ^~~~ cc1: all warnings being treated as errors boringssl/crypto/bio/CMakeFiles/bio.dir/build.make:302: recipe for target 'boringssl/crypto/bio/CMakeFiles/bio.dir/socket_helper.c.o' failed make[2]: *** [boringssl/crypto/bio/CMakeFiles/bio.dir/socket_helper.c.o] Error 1 CMakeFiles/Makefile2:1748: recipe for target 'boringssl/crypto/bio/CMakeFiles/bio.dir/all' failed make[1]: *** [boringssl/crypto/bio/CMakeFiles/bio.dir/all] Error 2 Makefile:83: recipe for target 'all' failed make: *** [all] Error 2
请问有什么解决办法吗

咨询

看到了你关于quic的研究成果。你研究的深入!感谢你的信息。
我最近利用libquic和你说的toy接口为基础,编写客户端和服务端接口代码,编写完成后单独测试没问题(采用阻塞模式,即使用while循环调用waitforevents),但把quic集成到我们的系统时,采用非阻塞模式调用waitforevents时,却出现了段错误。你有什么的建议和经验?十分感谢你的回复。

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.