LiteNetLib Namespace

LiteNetLib

LiteNetLib Namespace

LiteNetLib
Main module
Classes

  ClassDescription
Public classEventBasedNatPunchListener
Public classEventBasedNetListener
Public classNatPunchModule
Module for UDP NAT Hole punching operations. Can be accessed from NetManager
Public classNetConstants
Network constants. Can be tuned from sources for your purposes.
Public classNetDebug
Static class for defining your own LiteNetLib logger instead of Console.WriteLine or Debug.Log if compiled with UNITY flag
Public classNetEndPoint
Network End Point. Contains ip address and port
Public classNetManager
Main class for all network operations. Can be used as client and/or server.
Public classNetPeer
Network peer. Main purpose is sending messages to specific peer.
Public classNetUtils
Some specific network utilities
Structures

  StructureDescription
Public structureDisconnectInfo
Additional information about disconnection
Interfaces

  InterfaceDescription
Public interfaceINatPunchListener
Public interfaceINetEventListener
Public interfaceINetLogger
Interface to implement for your own logger
Enumerations

  EnumerationDescription
Public enumerationConnectionState
Peer connection state
Public enumerationDisconnectReason
Disconnect reason that you receive in OnPeerDisconnected event
Public enumerationLocalAddrType
Address type that you want to receive from NetUtils.GetLocalIp method
Public enumerationSendOptions
Sending method type
Public enumerationUnconnectedMessageType
Type of message that you receive in OnNetworkReceiveUnconnected event