Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

tbogdala/netpeddler

Repository files navigation

netpeddler: a Go library for fast networking using UDP

Netpeddler is a networking library that simplifies the sending of packets over UDP.

Instead of always having the ordering and reliability of TCP, it is possible to selectively have reliable packets via UDP using this library. It works by having each packet have an ACK mask built into it that can potentially acknowledge the reception of a packet. This idea of an ACK bitmask is described in this Gaffer On Games article.

NOTE: This library is in early development and API stability cannot be guaranteed.

Installation

You can get the latest copy of the library using this command:

go get github.com/tbogdala/netpeddler

You can then use it in your code by importing it:

import "github.com/tbogdala/netpeddler"

Usage

For now, users can browse the test files for examples on how to use netpeddler.

  • basic_connection_test.go
  • large_connection_test.go
  • reliable_test.go
  • retry_test.go

License

Netpeddler is released under the BSD license. See the LICENSE file for more details.

TODO

  • A banlist to check connections against.
  • Better documentation

About

Send unreliable and reliable packets over UDP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages