Skip to content

sergey-cherepanov/qiocp

Repository files navigation

qiocp

Description

qiocp is a windows ftp server sample to perform asynchronous operations in synchronous manner. It bases on coroutine macros. This significantly simplifies the writing of network applications or other nontrivial concurrent algorithms. This sample demonstrates how using the coroutines allows to achieve described simplifications. The code itself looks like synchronous invocations while internally it uses asynchronous scheduling.

Features

  1. Only one thread.
  2. No mutexs. No synchronization. No security.
  3. Basic network support.
  4. UTF-8 messages. Please, set Lucida Console font in console properties.
  5. Passive mode only.
  6. For personal use with Totalcmd client.

Some of the ideas was inspired by fashion on coroutine implemention in future c++.

Requirements

  • Supported compilers:
    • GCC (MinGW)
    • MSVC

MinGW version runs faster.

References

Stackless coroutine macro idea is described in http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html

About

Ftp server sample based on overlapped WSA operations, one thread, stackless coroutine macros in C for windows

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published