Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruifig/czspas
Minimalistic socket library inspired by Asio/Boost Asio, implemented in 1 single header file
https://github.com/ruifig/czspas
asio cpp sockets tcp
Last synced: 27 days ago
JSON representation
Minimalistic socket library inspired by Asio/Boost Asio, implemented in 1 single header file
- Host: GitHub
- URL: https://github.com/ruifig/czspas
- Owner: ruifig
- License: mit
- Created: 2017-05-12T14:33:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-25T22:35:13.000Z (4 months ago)
- Last Synced: 2024-08-26T00:07:26.413Z (4 months ago)
- Topics: asio, cpp, sockets, tcp
- Language: C++
- Homepage:
- Size: 376 KB
- Stars: 26
- Watchers: 3
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
- AwesomeCppGameDev - czspas
README
cz-spas
=======czspas (Small Portable Asynchronous Sockets) is minimalistic socket library inspired by Asio/Boost Asio, implemented in 1 single header file.
Features:
* Currently works on Windows and Linux.
* Should be easy to port to any platform that supports BSD sockets.
* No external dependencies.
* Small codebase
* Asynchronous Asio-like API.
* Only IPv4 at the moment.Intent
======czspas was created with the intent of being used where a simple asynchronous TCP API is needed, but adding a dependency on something like Boost Asio (or Asio standalone) is overkill.
It was originally created for [https://bitbucket.org/ruifig/czrpc](https://bitbucket.org/ruifig/czrpc) to remove the dependency on Asio (although it is not yet being used in czrpc).
How to build
============There is nothing to build. Just include ```spas.h``` (found in ```source\crazygaze\spas\```) in your project.
Visual Studio 2015 or higher is required on Windows. On Linux, any recent version of gcc/clang should work.
The **master** branch is the most stable one, and **dev** is where development happens.
Documentation
=============Check the [Wiki](https://github.com/ruifig/czspas/wiki) for documentation.