Giter Site home page Giter Site logo

litenetlib4mirror's Introduction

LiteNetLib4Mirror Transport

LiteNetLib based transport for Mirror.

Usage

  1. Download the unity package from Releases and import it to your project (it does not contain Mirror)
  2. Put LiteNetLib4MirrorTransport component on gameobject with NetworkManager and assign it there
  3. (Optional) Make your NetworkManager derrive from LiteNetLib4MirrorNetworkManager and use optional overloads from it

Features

  • UDP
  • Built-in Network Discovery and UPnP
  • Fully managed code
  • Small CPU and RAM usage
  • Small packet size overhead ( 1 byte for unreliable, 3 bytes for reliable packets )
  • Different send mechanics
  • Reliable with order
  • Reliable without order
  • Ordered but unreliable with duplication prevention
  • Simple UDP packets without order and reliability
  • Automatic small packets merging
  • Automatic fragmentation of reliable packets
  • Automatic MTU detection
  • NTP time requests
  • Packet loss and latency simulation
  • IPv6 support (dual mode)
  • Connection statisitcs (need DEBUG or STATS_ENABLED flag)
  • Multicasting (for discovering hosts in local network)

IL2CPP Warning!

With IL2CPP, IPv6 is only supported on Unity 2018.3.6f1 and later because of this:
Unity ChangeLog
Also, socket Reuse Address option isn't available in IL2CPP.

Credits

RevenantX - for LiteNetLib
vis2k & Paul - for Mirror
Coburn - for Ignorance which i've used as an example
Dankrushen - for helping me find one small mistake which i couldn't find for two days
Lucas Ontivero - for Open.Nat, used for UPnP
shiena - for NetworkDiscoveryHUD

litenetlib4mirror's People

Contributors

ansonkindred avatar michalpetryka avatar shiena avatar softwareguy avatar

Watchers

 avatar  avatar

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.