https://github.com/hzeller/threadless-server
select() event API experiment with c++11 closures.
https://github.com/hzeller/threadless-server
Last synced: 8 months ago
JSON representation
select() event API experiment with c++11 closures.
- Host: GitHub
- URL: https://github.com/hzeller/threadless-server
- Owner: hzeller
- Created: 2016-12-13T17:02:47.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-03-07T18:17:52.000Z (over 4 years ago)
- Last Synced: 2024-12-29T13:26:22.970Z (9 months ago)
- Language: C++
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Experimenting with C++11 closures and Unix select() to make an easy-to-use and
readable threadless server, multiplexing connections, all handled in the main
loop without extra threads needed.Nothing interesting to see here, just experiments. Real world would use libev
or libevent or something.threadless-server : a simple echo server, listing on port 3000
fortune-teller : an even simpler fortune teller server, listening on 3001