Skip to content

Dautor/coroutines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Examples

Examples can be found under directory example.

Currently there are 3 example programs:

  • yield

    Shows some computation within coroutines and uses yield to make them concurent.

  • server

    Implementation of a simple TCP server using this coroutine library.

    • supports an “infinite” amount of clients.
    • just broadcasts messages to all clients
  • client

    Implementation of a simple TCP client using this coroutine library.

    • can connect to the example server and send/receive messages

Why C++?

Unfortunately, this library is not implementable in C. It is almost implementable, except for the simple syntax of CO. It would be implementable if we had vmakecontext (a variant of makecontext that takes in va_list instead of ...). If someone provides it, I will port the library to C.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published