Fix typo: ENCODE_BY_LITTEL_ENDIAN → ENCODE_BY_LITTLE_ENDIAN (#825)
Initial plan
Fix typo: ENCODE_BY_LITTEL_ENDIAN → ENCODE_BY_LITTLE_ENDIAN
Agent-Logs-Url: https://github.com/ithewei/libhv/sessions/8e4ecff3-c8d8-43af-b29d-336c92e28c28
Co-authored-by: ithewei 26049660+ithewei@users.noreply.github.com
- Remove backward compatibility for little endian encoding
Removed backward compatibility definition for ENCODE_BY_LITTEL_ENDIAN.
Co-authored-by: copilot-swe-agent[bot] 198982749+Copilot@users.noreply.github.com Co-authored-by: ithewei 26049660+ithewei@users.noreply.github.com Co-authored-by: ithewei ithewei@163.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
English | 中文
libhv
Like
libevent, libev, and libuv,libhvprovides event-loop with non-blocking IO and timer, but simpler api and richer protocols.✨ Features
⌛️ Build
see BUILD.md
Makefile:
or cmake:
or bazel:
or vcpkg:
or xmake:
⚡️ Getting Started
run
./getting_started.sh:TCP
tcp server
c version: examples/tcp_echo_server.c
c++ version: evpp/TcpServer_test.cpp
tcp client
c version: examples/tcp_client_test.c
c++ version: evpp/TcpClient_test.cpp
HTTP
http server
see examples/http_server_test.cpp
golang gin style
http client
see examples/http_client_test.cpp
python requests style
WebSocket
WebSocket server
see examples/websocket_server_test.cpp
WebSocket client
see examples/websocket_client_test.cpp
🍭 More examples
c version
c++ version
simulate well-known command line tools
🥇 Benchmark
pingpong echo-serversthroughput:
iperf tcp_proxy_serverBandwidth:
webbenchlibhv(port:8080) vs nginx(port:80)
Above test results can be found on Github Actions.