SwiftNet is a simple and easy-to-use networking library built using raw sockets. It is designed for developers who value simplicity, readability, and good performance.
This library focuses on functionality over speed for now. If you need high performance for a release, consider waiting. We plan to optimize performance once the library is stable and feature-complete.
If you intend to use this library, please note that it has not been fully tested for public packet transmissions and will probably not work. These early versions are mainly for local testing and development.
- Apple Silicon (macOS arm64)
- Linux arm64
- 💡 Ease of Use: Simple API designed to get up and running quickly, without needing to deal directly with raw sockets.
- 📂 Lightweight: No dependencies and a small footprint.
- Straightforward API: Get up and running with minimal setup.
- Open Source and Collaborative: Contributions are welcome to make it even better.
Follow these steps to install SwiftNet:
- Clone the repository to your local machine:
git clone https://github.com/deadlightreal/SwiftNet- Navigate to the build directory inside the SwiftNet directory:
cd SwiftNet/build- Generate the build files using CMake:
cmake ../src- Build the project using Make:
make- To use SwiftNet in your project:
- Include the SwiftNet.h header from the
srcdirectory in your main source file (e.g.,main.c). - Link against the static library
libswiftnet.ausing your compiler.
Contributions are very welcome! If you'd like to improve the library or fix any issues, feel free to fork the repository and submit a pull request.
We have simple guidelines for contributing:
- Write clear and concise comments for your code.
- Ensure that the code is easy to read and follows the existing style.
We value collaboration and clean code!
This project is licensed under the Apache License 2.0
For any questions or support, feel free to open an issue or contact me at [[email protected]].