上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 36 下一页
摘要: 1. HTTPS详解二:SSL / TLS 工作原理和详细握手过程 看到另外几篇介绍不错的文章,再次分享一下 园内大佬写的, 通过一个小故事,理解 HTTPS 工作原理 这篇博文已经把 SSL 的工作原理介绍的明白了得,不过在 CA 证书验证这块描写的有点少,故另外找了一篇专门介绍 CA 证书验证的 阅读全文
posted @ 2022-02-09 12:15 strive-sun 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 31. Minimize complilation dependencies between files(handle class & interface class) 这部分需要记录下来, Handle classes #include <string> #include <memory> cla 阅读全文
posted @ 2022-01-13 11:27 strive-sun 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 1. auto_ptr 不建议使用的原因: auto_ptr 采用 copy 语义来转移指针资源,转移指针资源的所有权的同时将原指针置为 nullptr,这跟通常理解的 copy 行为是不一致的(不会修改原数据),而这样的行为在有些场合下不是我们希望看到的。 例如参考《Effective STL》第 阅读全文
posted @ 2022-01-05 19:47 strive-sun 阅读(54) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <string> #include <vector> std::shared_ptr<std::vector<std::string>> AssignValue() { std::vector<std::string> str_v1; std 阅读全文
posted @ 2021-12-21 00:06 strive-sun 阅读(3875) 评论(0) 推荐(0) 编辑
摘要: void Utf8ToUtf8Bom(const wchar_t* filename) { std::ifstream infile; std::string strline; std::string strresult; // BOM HEADER char c1 = (char)0xEF; ch 阅读全文
posted @ 2021-12-06 19:40 strive-sun 阅读(308) 评论(0) 推荐(0) 编辑
摘要: LARGE_INTEGER nFreq, t1, t2; int loop_count = 0; double dt; double time_sum = 0; QueryPerformanceFrequency(&nFreq); QueryPerformanceCounter(&t1); /* 要 阅读全文
posted @ 2021-10-12 15:47 strive-sun 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 一个对象的 this 指针并不是对象本身的一部分,不会影响 sizeof(对象)的结果。this 作用域是在类内部,当在类的非静态成员函数中访问类的非静态成员的时候,编译器会自动将对象本身的地址作为一个隐含参数传递给函数。 参考:C++this指针 tip: [指针] 只是类型的名字;变量可以是指针 阅读全文
posted @ 2021-10-08 16:26 strive-sun 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 好回答: 怎么解决TCP网络传输「粘包」问题? tcp 和 udp 协议属于传输层协议,通俗一点就是,你需要在传输层上自主选择可靠或不可靠的协议传输字节流,在应用层上对发送和接受到的字节流进行处理,比如定制包头标志和负载长度来保证文件的传输的完整。 传输层协议只保证字节流的传输。。。 阅读全文
posted @ 2021-10-08 16:03 strive-sun 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 编程分为两类:系统编程(system programming)和应用编程(application programming)。所谓系统编程,简单来说,就是编写库;而应用编程就是利用写好的各种库来编写具某种功用的程序,也就是应用。系统程序员会给自己写的库留下一些接口,即API(application p 阅读全文
posted @ 2021-09-29 10:25 strive-sun 阅读(51) 评论(0) 推荐(0) 编辑
摘要: => CDN 加速原理 HTTP 请求流程说明: 用户在浏览器输入要访问的网站域名,向本地 DNS 发起域名解析请求。 域名解析的请求被发往网站授权 DNS 服务器。 网站 DNS 服务器解析发现域名已经 CNAME 到了www.example.com.c.cdnhwc1.com。 请求被指向 CD 阅读全文
posted @ 2021-09-28 11:34 strive-sun 阅读(36) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 36 下一页