如何用OpenSSL在C++Curl中测量握手时间
How to measure time of handshake in C++ Curl with OpenSSL?
我有一些卷曲的选项:
curl_easy_setopt(curl_, CURLOPT_SSL_VERIFYHOST, 1;
curl_easy_setopt(curl_, CURLOPT_SSL_VERIFYPEER, 1);
curl_easy_setopt(curl_, CURLOPT_SSL_CTX_DATA, this);
curl_easy_setopt(curl_, CURLOPT_SSL_CTX_FUNCTION, SslContextFunction);
...
当握手结束时,如何从curl获得回调?
由于您使用的是OpenSSL,因此在调用SslContextFunction
时,请使用SSL_CTX_set_info_callback
为SSL上下文中发生的各种事件建立回调。其中一个事件将是SSL_CB_HANDSHAKE_DONE
。
相关文章:
- 用时钟测量程序的运行时间
- 为什么根据测量位置测量经过的时间时会有很大的不同?
- 为什么在尝试测量函数返回所需的时间时,我的运行时编号是错误的?
- 分别测量每个线程上花费的 CPU 时间(C++)
- 测量时间以在 c++ 中生成更好的随机数
- 给定使用 C++ 或 C,我如何测量在 linux 下进行线程切换需要多长时间?可能吗?
- Linux 测量时间问题! std::chrono, QueryPerformanceCounter, clock_ge
- 以相同的结果测量时间
- 在IF语句C 中测量时间
- 当我使用 cin 时,我如何使用 clock() 测量时间
- 在 GPU 上测量时间
- C++精确测量时间,单位为十进制毫秒
- 有没有办法在Windows上测量时间到微秒的精度
- 用C++测量时间
- 测量时间以执行简单的指令
- c++时钟测量时间不正确
- 为Windows c++测量时间,毫秒或微秒
- 获取CPU节拍和测量时间
- C 如何在 <time.h 中测量时间>
- 用c++语言测量时间,精度高