yasio logo

YASIO - Yet another Asynchronous Socket I/O.

Android Build Status iOS Build Status Windows Build Status Linux Build Status macOS Build Status

Release 996.icu LICENSE GitHub stars GitHub forks Language grade: C/C++ Total alerts

Supported Platforms

Powered

简体中文

yasio is a multi-platform support and lightweight library with focus on asynchronous socket I/O for any client application, support windows & linux & apple & android & win10-universal.

Showcase

Integration Demos

Docomentation

Simple run tcptest with g++

g++ tests/tcp/main.cpp --std=c++11 -DYASIO_HEADER_ONLY -lpthread -I./ -o tcptest && ./tcptest

Build more examples with cmake

git clone https://github.com/yasio/yasio
cd yasio
git submodule update --init --recursive
# For macOS xcode, it's shoud be: cmake -B build -GXcode
cmake -B build

# Use cmake command to build examples & tests, or use platform specific IDE to open yasio project
# a. Windows: Use Visual Studio(2013~2019 supported) to open build/yasio.sln
# b. macOS: Use Xcode to open build/yasio.xcodeproj
cmake --build build --config Debug

Features:

About C++17

yasio provide follow C++17 standard components compatible with C++11 compiler, please see: cxx17

Core framework

image