# fibio **Repository Path**: windoze/fibio ## Basic Information - **Project Name**: fibio - **Description**: Fiberized.IO 是一个基于 Fiber 和 Async I/O 的通用 C++ 网络库。 - **Primary Language**: C++ - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: http://fiberized.io - **GVP Project**: No ## Statistics - **Stars**: 28 - **Forks**: 11 - **Created**: 2014-12-09 - **Last Updated**: 2025-03-28 ## Categories & Tags **Categories**: web-dev-toolkits **Tags**: None ## README [![Build Status](https://travis-ci.org/windoze/fibio.svg?branch=master)](https://travis-ci.org/windoze/fibio) 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](https://github.com/windoze/fibio/wiki) for manuals and references The echo server example ----------------------- ``` #include #include 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 #include 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(); } ```