libhv icon indicating copy to clipboard operation
libhv copied to clipboard

🔥 比libevent/libuv/asio更易用的网络库。A c/c++ network library for developing TCP/UDP/SSL/HTTP/WebSocket/MQTT client/server.

Results 126 libhv issues
Sort by recently updated
recently updated
newest added

在Linux下, 直接运行`configure`然后`make`编译出的静态库文件为`hv.a`, `cmake`编译出的静态库文件为`hv_static.a`. 是否需要统一?

The open function of WebSocketClient does not support param, could that be supported? I think the change is small. change function definition from ```C++ int open(const char* url, const http_headers&...

TCP客户端在服务端不在线时连接 会触发重连 待服务端在线了 也会自动连接 连接后 如果服务端断开 拔掉网线、非主动断开等 TCP客户端不会触发自动重连 我加了心跳之后 在服务端非法断开后 尝试使用start()、startReconnect() 让它触发自动重连 都没有生效 我该怎么做才能让客户端进入重连状态

nlohmann::json 这个库对中文支持不好,接口使用方式也不好用,还不如cpprest的JSON类好用,我想在源代码中替换另外一个JSON类,哪位大神知道该怎么操作?

It was necessary to deploy http server with ssl, but the certificate that was used was a chain of certificates. Libhv read only the first one. Added the ability to...

查看源码,发现在onConnection之后就进行了reset 而ws是在onMessage才触发onopen https://github.com/ithewei/libhv/blob/b7928e930710df51c055fc2345f6871eeee04530/evpp/TcpClient.h#L134-L145

tcp客户端, 使用 断线重连功能, 每次重连都会弹框出来, 如何把弹框取消, 改成 输出日志? 或者干脆不要弹框了 ![Image](https://github.com/user-attachments/assets/6e287df1-6fb0-4b3a-aa28-e762262e8313) `#include "pch.h" #include "fun_TcpClient.h" TcpClient g_ClientOBj; SERVER_FUNC g_ServerMsgFunc[Server_Msg::s2c_message_end]; std::vector g_VecRecvServerData; std::queue g_QuePacketTask; std::atomic g_QuePacketRun = FALSE; void fun_InitClient() { int connfd...

setHeartbeat需要在回调函数里自己实现发送内容吗,那和setInterval有什么区别

From latest repo, I try to follow the example of https://github.com/ithewei/libhv/blob/master/examples/http_server_test.cpp using: #include "hv/HttpContext.h" #include "hv/HttpServer.h" #include "hv/hasync.h" // import hv::async #include "hv/hthread.h" // import hv_gettid getting snuggles as: HttpContextPtr...