matt-42 / moustique Goto Github PK
View Code? Open in Web Editor NEWC++14 high performance non-blocking network IO (based on epoll + boost.context)
License: MIT License
C++14 high performance non-blocking network IO (based on epoll + boost.context)
License: MIT License
It won't compile with the latest Boost version on Ubuntu 22.04
In file included from ./src/main.cpp:1:
./src/moustique.hh:25:10: fatal error: boost/context/all.hpp: No such file or directory
25 | #include <boost/context/all.hpp>
I changed the boost include to this and then it did compile:
`
#include <boost/context/continuation.hpp>
`
There is also a warning:
./src/main.cpp:15:28: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
15 | while (received = read(buf, sizeof(buf))) // Suspend until new bytes
Other than that, it did run straight away, the Epoll encapsulation looks brilliant, I wonder if you have continued this project in another repository? Can be used ASIO standalone instead of Boost?
Thank you for creating and sharing this.
Regards,
Martin
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.