Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noteed/game-packet
Simple UDP-based game networking
https://github.com/noteed/game-packet
Last synced: about 2 months ago
JSON representation
Simple UDP-based game networking
- Host: GitHub
- URL: https://github.com/noteed/game-packet
- Owner: noteed
- License: bsd-3-clause
- Created: 2010-08-30T08:15:17.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2010-08-30T09:15:24.000Z (over 14 years ago)
- Last Synced: 2023-04-13T10:31:54.730Z (over 1 year ago)
- Language: Haskell
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# game-packet
Simple UDP-based game networking
Game-packet is a Haskell library providing a simple networking stack for
fast-paced action games (e.g. first-person shooters). The principles are
from [gafferongames.com][].[gafferongames.com]: http://gafferongames.com/
## Principles
At the base of the stack is the Socket. A socket has no notion of connection.
It just lets you send to and receive packet from (either a ByteString or more
generally a Serialize instance) another socket.Above the Socket is the Connection. A connection is defined by a steady stream
of packets. When packets don't flow for more than some period of time, the
connection is broken.Above the Connection, Acknowledgement is built. Acknowledgement provides
sequence numbers and acks. It is not yet implemented.