9 Star 22 Fork 8

Windoze / fibio

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Build Status

Fiberized.IO

Fiberized.IO is a fast and simple networking framework without compromises.

  • Fast
    Asynchronous I/O under the hood for maximum speed and throughtput.
  • Simple
    Fiber based programming model for concise and intuitive development.
  • No compromises
    Standard C++ thread and iostream compatible API, old-fashion programs just work more efficiently.

Read the Wiki for manuals and references

The echo server example

#include <fibio/fiberize.hpp>
#include <fibio/iostream.hpp>
 
using namespace fibio;
 
int fibio::main(int argc, char *argv[]) {
    return tcp_listener(7)([](tcp_stream &s){
        s << s.rdbuf();
    }).value();
}

The HTTP server example

#include <fibio/fiberize.hpp>
#include <fibio/http_server.hpp>

using namespace fibio::http;
 
int fibio::main(int argc, char *argv[]) {
    return server(23456).handler(
        route(
            path_("/add/:x/:y")>>[](double x, double y){return x+y;}
        )
    ).run().value();
}

Repository Comments ( 1 )

Sign in for post a comment

About

Fiberized.IO 是一个基于 Fiber 和 Async I/O 的通用 C++ 网络库。 expand collapse
C++
BSD-2-Clause
Cancel

Releases

No release

fibio

Contributors

All

Activities

Load More
can not load any more
C++
1
https://git.oschina.net/windoze/fibio.git
git@git.oschina.net:windoze/fibio.git
windoze
fibio
fibio
master

Search

141041 ab9339c7 1850385 141043 25c028d5 1850385