Git Product home page Git Product logo

miniudp's Introduction

MiniUDP: A Simple UDP Layer for Shipping and Receiving Byte Arrays

Alexander Shoulson, Ph.D. - http://ashoulson.com


Based loosely on MassiveNet, and LiteNetLib.


Build status

Supported Networking Tasks:

  • UDP traffic I/O for byte[] arrays with very little overhead
  • Connection establishment and time-out detection
  • Reliable-ordered and unreliable-sequenced message channels
  • Traffic statistic collection for ping, remote/local packet loss, and remote/local packet drop
  • Noise-based bidirectional latency and loss simulation with configurable parameters

Three delivery modes:

  • Connection Token: A custom string attached with an opening connection request. Will be delivered to the host when the connection is established and made available via an event. Intended for session token authorization.
  • Payloads: Sent immediately upon request as unreliable-sequenced. MiniUDP will not re-send but will drop payloads on arrival if they're older than the latest. Intended for synchronizing delta-encoded game state data.
  • Notifications: Queued and sent at regular intervals as reliable-ordered. MiniUDP will ensure the arrival of these messages and will re-send if necessary. Intended for extra-game messages like chat, authentication, and other bookkeeping tasks.

Wishlist:

  • Encryption and authentication

Not Supported:

  • Fragmentation/reassembly (MiniUDP enforces a hard MTU for its payload size)
  • Data serialization (MiniUDP expects a byte[] array and int length for all data)
  • RPCs

miniudp's People

Contributors

ashoulson avatar nxrighthere avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

miniudp's Issues

Disconnect event for firing

Hello Sir,
Thanks for creating such a small and lightweight udp client which is perfect for my unity project. But one problem i am facing is that server is not firing disconnect event when client net connection is turned off. I have tried changing ConnectionTimeout to 3000 but still it not working.

Please help
Regards

Library performance

Hey Alex! I just released BenchmarkNet for stress testing the reliable UDP networking solutions (including MiniUDP). If you are interested, here's the latest results.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.