Skip to content
Portable, single-file, protocol-agnostic TCP and UDP socket wrapper, primarily for game networking
C
Branch: master
Clone or download
Latest commit 0fa0308 Aug 29, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
swrap.h ifndef'd TCP_NODELAY Aug 29, 2019

README.md

Documentation

This is a header-only library, as such most of its functional documentation is contained within the "header section" of the source code in the form of comments. It is highly recommended that you read said documentation before using this library.

Features

The swrap library provides a cross-platform socket wrapper with automatic protocol-agnosticity, its features include:

  • Encapsulates platform-specific socket implementations for both Windows and POSIX systems
  • Future-proof protocol-agnosticity thanks to the system-internal getaddrinfo function
  • Includes select and multi-select functions with timeouts in double seconds

Attribution

You are not required to give attribution when using this library. If you want to give attribution anyway, either link to this repository, my website, or credit me as BareRose. If you want to support me financially, consider giving to my Patreon.

License

Licensed under CC0 aka the most lawyer-friendly way of spelling "public domain".

You can’t perform that action at this time.