wsServer
iwnet
wsServer | iwnet | |
---|---|---|
1 | 5 | |
402 | 172 | |
- | 1.2% | |
7.2 | 6.9 | |
14 days ago | 27 days ago | |
C | C | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
wsServer
-
Libwebsockets
One great feature for me was being able to accept both WebSocket as well as raw TCP connections on the same port using libwebsockets, this is extremely easy and just required settings the flag LWS_SERVER_OPTION_FALLBACK_TO_RAW.
I encountered other hiccups. They are fully documented and completely valid, but were really confusing to me as a first-time user:
* Sending data requires a specific memory layout[2] – namely having to allocate memory for the websocket header youself before the actual message you want to send. This gave me confusing segfaults in the beginning.
* Sending data / responding to a client message will probably (but not always) fail when just naively using "lws_write()". To correctly send data you need to manually queue your message data, request the "ON_WRITABLE" callback[3] and only then actually send.
[1]: https://github.com/Theldus/wsServer
iwnet
- IWNET — Pure C Asynchronous HTTP/IO library providing websockets, SSL, routing and reverse proxy. (MIT)
- IWNET — Asynchronous HTTP/IO library providing websockets, SSL, routing and reverse proxy. (MIT)
- Pure C Asynchronous HTTP library with websockets, SSL, routing.
-
Hacker News top posts: Apr 15, 2022
Show HN: Pure C Asynchronous HTTP Framework\ (5 comments)
- Show HN: Pure C Asynchronous HTTP Framework
What are some alternatives?
libcurl - A command line tool and library for transferring data with URL syntax, supporting DICT, FILE, FTP, FTPS, GOPHER, GOPHERS, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, MQTT, POP3, POP3S, RTMP, RTMPS, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET, TFTP, WS and WSS. libcurl offers a myriad of powerful features
httpserve - Spin up a little http server from the commandline.
cosmopolitan - build-once run-anywhere c library
ub-server - HTTP 1.1 server with epoll and pthread, written in C
Websocket - WSServer is a fast, configurable, and extendable WebSocket Server for UNIX systems written in C (C11).
Melon - A generic cross-platform C library that includes many commonly used components and frameworks, and a new scripting language interpreter. It currently supports C99 and Aspect-Oriented Programming (AOP).
angie - Angie - drop-in replacement for Nginx
pcb-rs - A library to easily write software emulated hardware
facil.io - Your high performance web application C framework
Firefly - Firefly is an asynchronous web framework for rapid development of high-performance web application.
neovim - Vim-fork focused on extensibility and usability