Socket APIs Coost provides commonly used coroutineized socket APIs to support coroutine-based network programming.
Most of the APIs are consistent in form with the native socket APIs, which can reduce the user’s learning burden, and users who are familiar with socket programming can easily get started.
Most of these APIs need to be used in coroutines. When they are blocked on I/O or sleep, the scheduling thread will suspend the current coroutine and switch to other waiting coroutines, and the scheduling thread itself will not block.
https://coostdocs.github.io/en/co/net/sock/
include: co/co.h.
Socket APIs Coost provides commonly used coroutineized socket APIs to support coroutine-based network programming.
Most of the APIs are consistent in form with the native socket APIs, which can reduce the user’s learning burden, and users who are familiar with socket programming can easily get started. Most of these APIs need to be used in coroutines. When they are blocked on I/O or sleep, the scheduling thread will suspend the current coroutine and switch to other waiting coroutines, and the scheduling thread itself will not block.