{"repo":"simdsoft/yasio","free":true,"listed":false,"github":"https://github.com/simdsoft/yasio","clone":"git clone https://github.com/simdsoft/yasio.git","description":"A multi-platform support c++11 library with focus on asio (asynchronous socket I/O) for any client applications.","language":"C++","stars":1057,"topics":["socket","tcp","multi-threading","lua-bindings","udp","yasio","asio","unity3d","android","linux"],"license":null,"category":"mobile-apps","readme_excerpt":"YASIO - Y et A nother S ocket I / O library. English yasio 是一个轻量级跨平台的异步网络库，专注于客户端和基于各种游戏引擎的游戏客户端网络服务， 支持 windows、macos、ios、android、ohos、linux、freebsd 以及其他类 unix 操作系统。 说明: 自 4.4.0 版本起，最低支持的 C++ 标准为 C++20。 支持平台 - Windows - Android - iOS/tvOS/watchOS - Linux - macOS - FreeBSD - Solaris 应用案例 放置少女（HD）：用于cocos和unity重制版客户端网络传输。 红警OL手游项目：用于客户端网络传输，并且随着该项目于2018年10月17日由腾讯游戏发行正式上线后稳定运行于上千万移动设备上。 x-studio软件项目：网络解决方案。 QttAudio：语音连麦聊天集成方案。 集成案例 Unity - yasio unity：Unity 纯C#封装，打开场景 SampleScene 运行即可。 - xlua：将yasio集成到xlua, 打开场景 U3DScripting 运行即可。 UnrealEngine - yasio unreal：yasio的UnrealEngine插件。 - sluaunreal：集成到Tencent的sluaunreal。 - UnLua：集成到Tencent的UnLua。 axmol：作为 axmol 游戏引擎的网络解决方案。 文档 https://learn.simdsoft.com/yasio 使用g++快速运行tcptest测试程序 使用CMake编译yasio的测试程序和示例程序 特性： 支持TCP，UDP，KCP传输，且API是统一的。 支持TCP粘包处理，业务完全不必关心。 支持组播。 支持IPv4/IPv6或者苹果IPv6 only网络。 支持处理多个连接的所有网络事件。 支持微秒级定时器。 支持Lua绑定。 支持Cocos2d-x jsb绑定。 支持CocosCreator jsb2.0绑定。 支持Unity3D。 支持虚幻引擎。 支持SSL客户端/服务端, 基于OpenSSL/MbedTLS。 支持非阻塞域名解析，基于c-ares。 支持Header Only集成方式，只需要定义编译预处理器宏 即可。 支持Unix Domain Socket。 支持二进制读写，两个工具类 obstream/ibstream 非常方便使用。 支持和.net兼容的整数压缩编码方式： 7Bit Encoded Int/Int64 。 关于C++14/17/20 yasio提供了如下可在C++11编译器下使用的C++14/17/20标准库组件，请查看 yasio/string view.hpp, yasio/shared mutex.hpp, yasio/memory.hpp - cxx14::make unique - cxx17::string view - cxx17::shared mutex - cxx20::starts with - cxx20::ends with - yasio::byte buffer - yasio::pod vector 关于 OpenSSL 预编译库 (Windows) yasio 的 cmake 脚本默认选择 OpenSSL 作为 SSL 支持库，并且会自动从1kiss下载， 且预编译库使用 VS2022(","default_branch":null,"files":null,"tree":[],"storefront":"/r/simdsoft","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/simdsoft/yasio/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}