Open ArdxWe opened 2 years ago
It's so exciting to hear such appreciation. Thanks and I really wish somebody could build this repo together. However, currently there's only one sample that simply loops and calls BLOCKING read()/write()
. Interface in server.h
is OK now but may not be suitable for other more complicated IO models. For example set_response()
currently does not contain the connection's state and it is hard to implement it in multi-threading models.
I suggest that you wait for me to finish the async and cpp20-coroutine version in these few days and refine the interfaces. Then it must be exciting to extend them to application demos like MySQL, HTTP, and so on. I'll notify you in that time.
Also if you have any idea about the interfaces, please discuss them with me. The goal of the design is as simple as possible but provide the ability to support all kinds of service. Like the TCP library in Node.js or even simpler.
Maybe I could add some code for simple protocol such as mysql, http demo.