SwiftNet v0.4.0 Release (Networking library written in C)
1 points
1 hour ago
| 1 comment
| github.com
| HN
morcules
1 hour ago
[-]
SwiftNet is a networking library written in C.

It is designed to be fast, customizable at compile time, easily debuggable, and unique.

The best use cases for this library are: - Video games made with OpenGL/Vulkan - Desktop applications - Any project that uses C/C++ for both client and server

It works at Layer 2 networking using PCAP. The primary focus for future versions is to improve performance by adding AF_XDP support and implementing additional code optimizations.

Right now, it is not as fast as it will be in the future, but speed was not the primary focus at this stage.

0.4.0 New features / updates: - Thread conditional pausing using semaphore - Background memory cleanup service - Thread data race fixes - Optimized alignment - Remove debug flag function - Unicast instead of broadcast for packet sending - Performance tests

Supported platforms (as of now): - MacOS arm64 - Linux arm64

If you want to check it out, here’s the link: https://github.com/Morcules/SwiftNet

reply