Description
GameNetworkingSockets is a transport layer for games, written by Valve, that provides reliable and unreliable messages over UDP. It offers a connection-oriented API, like TCP, but it is message-oriented, like UDP, so the application sends discrete messages rather than a stream of bytes. Messages can be larger than the network's maximum transmission unit, and the library handles splitting them into fragments, putting them back together and retransmitting reliable messages. Its reliability layer is more sophisticated than a basic TCP-style sliding window, and the README describes it as based on an ack vector approach. The library also includes peer-to-peer networking with NAT traversal, so two players behind routers can connect directly, and it encrypts traffic. The README explains the quick API overview, how to build the project, and which language bindings exist, and it answers the common question of why Steam is mentioned so often. The repository includes a security policy. It suits game developers who need a dependable networking layer for multiplayer games and do not want to build reliability and encryption from scratch.…
Highlights
- Reliable and unreliable messages over UDP
- Fragmentation and reassembly of large messages
- Peer-to-peer networking with NAT traversal
- Encryption built in
Ratings & Reviews
No ratings yet
Be the first to rate GameNetworkingSockets.
People also visit
GameNetworkingSockets FAQ
What is GameNetworkingSockets?
A transport layer for games that sends reliable and unreliable messages over UDP.
How is it different from TCP?
It has a connection-oriented API like TCP, but it is message-oriented, so it sends discrete messages instead of a byte stream.
Can players connect directly?
Yes. The library includes peer-to-peer networking with NAT traversal.
Is traffic encrypted?
Yes. The README lists encryption among its features.
Where do I start?
The quick API overview and the building section of the README, plus the list of language bindings.
What are the best GameNetworkingSockets alternatives?
Popular alternatives to GameNetworkingSockets include Ignorance, Riptide and GamingVPN. See all GameNetworkingSockets alternatives
