Click or drag to resize

LiteNetLib Namespace

 
Classes
 ClassDescription
Public classConnectionRequest 
Public classEventBasedLiteNetListener Simple event based listener for simple setups and benchmarks
Public classEventBasedNatPunchListener An implementation of INatPunchListener that maps callbacks to events.
Public classEventBasedNetListener Simple event based listener for simple setups and benchmarks
Public classInvalidPacketException 
Public classLiteConnectionRequest 
Public classLiteNetManager Main class for all network operations. Can be used as client and/or server.
Public classLiteNetPeer Network peer. Main purpose is sending messages to specific peer.
Public classNatPunchModule Module for UDP NAT Hole punching operations. Can be accessed from NetManager
Public classNetConnectRequestPacket 
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 classNetEvent Internally used event type
Public classNetManager More feature rich network manager with adjustable channels count
Public classNetPacketReader 
Public classNetPeer Improved LiteNetPeer with full multi-channel support
Public classNetStatistics Thread-safe counter for network statistics including sent/received packets, bytes, and packet loss.
Public classNetUtils Some specific network utilities
Public classTooBigPacketException 
Structures
 StructureDescription
Public structureDisconnectInfo Additional information about disconnection
Public structureLiteNetManagerNetPeerEnumeratorT 
Public structurePooledPacket 
Interfaces
 InterfaceDescription
Public interfaceILiteNetEventListener Interface for implementing own ILiteNetEventListener. This is a bit faster than use EventBasedListener
Public interfaceINatPunchListener Interface for handling events related to NAT punchthrough and introduction.
Public interfaceINetEventListener Interface for implementing own INetEventListener. This is a bit faster than use EventBasedListener
Public interfaceINetLogger Interface to implement for your own logger
Delegates
 DelegateDescription
Public delegateEventBasedLiteNetListenerOnConnectionRequest Delegate for the event that occurs when a new connection request is received.
Public delegateEventBasedLiteNetListenerOnDeliveryEvent Delegate for the event that occurs when a reliable packet is successfully delivered or acknowledged.
Public delegateEventBasedLiteNetListenerOnNetworkError Delegate for the event that occurs when a network error is detected in the underlying socket.
Public delegateEventBasedLiteNetListenerOnNetworkLatencyUpdate Delegate for the event that occurs when the round-trip time (RTT) to a peer is updated.
Public delegateEventBasedLiteNetListenerOnNetworkReceive Delegate for the event that occurs when data is received from a connected peer.
Public delegateEventBasedLiteNetListenerOnNetworkReceiveUnconnected Delegate for the event that occurs when a message is received from an unconnected endpoint.
Public delegateEventBasedLiteNetListenerOnPeerAddressChangedEvent Delegate for the event that occurs when a peer's remote address changes (roaming).
Public delegateEventBasedLiteNetListenerOnPeerConnected Delegate for the event that occurs when a new peer has successfully connected.
Public delegateEventBasedLiteNetListenerOnPeerDisconnected Delegate for the event that occurs when a peer disconnects or the connection is lost.
Public delegateEventBasedNatPunchListenerOnNatIntroductionRequest Delegate for NAT introduction request events.
Public delegateEventBasedNatPunchListenerOnNatIntroductionSuccess Delegate for NAT introduction success events.
Public delegateEventBasedNetListenerOnConnectionRequest Delegate for the event that occurs when a new connection request is received.
Public delegateEventBasedNetListenerOnDeliveryEvent Delegate for the event that occurs when a reliable packet is successfully delivered or acknowledged.
Public delegateEventBasedNetListenerOnNetworkError Delegate for the event that occurs when a network error is detected in the underlying socket.
Public delegateEventBasedNetListenerOnNetworkLatencyUpdate Delegate for the event that occurs when the round-trip time (RTT) to a peer is updated.
Public delegateEventBasedNetListenerOnNetworkReceive Delegate for the event that occurs when data is received from a connected peer.
Public delegateEventBasedNetListenerOnNetworkReceiveUnconnected Delegate for the event that occurs when a message is received from an unconnected endpoint.
Public delegateEventBasedNetListenerOnNtpResponseEvent Delegate for the event that occurs when an NTP response is received from a time server.
Public delegateEventBasedNetListenerOnPeerAddressChangedEvent Delegate for the event that occurs when a peer's remote address changes (roaming).
Public delegateEventBasedNetListenerOnPeerConnected Delegate for the event that occurs when a new peer has successfully connected.
Public delegateEventBasedNetListenerOnPeerDisconnected Delegate for the event that occurs when a peer disconnects or the connection is lost.
Enumerations
 EnumerationDescription
Public enumerationConnectionState Peer connection state
Public enumerationDeliveryMethod Sending method type
Public enumerationDisconnectReason Disconnect reason that you receive in OnPeerDisconnected event
Public enumerationLocalAddrType Address type that you want to receive from NetUtils.GetLocalIp method
Public enumerationNatAddressType Specifies the type of network address discovered during NAT punchthrough.
Public enumerationNetEventEType Specifies the category of the network event.
Public enumerationNetLogLevel 
Public enumerationUnconnectedMessageType Type of message that you receive in OnNetworkReceiveUnconnected event