Send unreliable and reliable packets over UDP.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
AUTHORS
LICENSE
README.md
ack_test.go
basic_connection_test.go
connection.go
large_connection_test.go
netpeddler.go
packet.go
reliable_test.go
retry_test.go

README.md

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