Comments (6)
How would you see API for such functionality from the library user perspective? I have a couple in-house WS client implementations on top of libevent, but I'm not sure if they fit for broader audience
from libevent.
“If anyone forces you to go one mile, go with them two miles.”
Libevent has its own websocket server code, but does not provide client code. I can't understand why only half of it is provided.
These APIs are convenient for users and will certainly not satisfy all users, but I think the "connection, sending, receiving and error callback" functions are APIs that any network library should provide. I don't like http. It contains too much redundant data and protocol exchanges. It is only forced to be used according to work requirements, and I have no interest in encapsulating the protocol upgrade process of websocket.
I also already have the server and client code for websocket implemented through libevent. I just think that implementing libevent yourself would be better than what I did.
from libevent.
Related Issues (20)
- nameserver_probe_callback() accesses a nameserver object freed by evdns_base_clear_nameservers_and_suspend() HOT 6
- Support for `visionos` as a platform HOT 5
- Compile error in bufferevent_openssl.c w/ MSVC HOT 2
- add a param (ev_misalign_t misalign) to function evbuffer_add_reference HOT 3
- Libevent 2.2 stable release
- Warnings reported by Infer HOT 2
- Bug in make_ws_frame (ws.c), bug in get_ws_frame (ws.c) HOT 1
- Suggest hash-pin GitHub Actions with sensitive permissions and a Dependency-Update-Tool HOT 8
- Which version is currently most suitable for libevent? HOT 2
- How to get the reqeust queue length of one evhttp_connection? HOT 1
- libevent debugging HOT 1
- [bug] Event activated by event_active on another thread may loss while event timeout HOT 4
- clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [sample/le-proxy] Error 1 HOT 1
- Fix MbedTLS and ZLIB for windows on CI HOT 1
- May bug in evhttp_connection_free_on_completion when the evhttp_connection fail to connect HOT 2
- Security advisory link is broken HOT 2
- find_dependency for MBedTLS failed for LibeventConfig.cmake HOT 1
- Test Failure and Warnings in http/bad_request under SELECT Event Mechanism on Raspberry Pi HOT 2
- install DESTINATIONs inconsistent.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libevent.