My Project
Loading...
Searching...
No Matches
Classes | Enumerations
LiteNetLib Namespace Reference

Classes

class  BaseChannel
 
class  ConnectionRequest
 
struct  DisconnectInfo
 Additional information about disconnection. More...
 
class  EventBasedNatPunchListener
 
class  EventBasedNetListener
 
interface  IDeliveryEventListener
 
interface  INatPunchListener
 
interface  INetEventListener
 
interface  INetLogger
 Interface to implement for your own logger. More...
 
interface  INtpEventListener
 
class  InvalidPacketException
 
class  NatPunchModule
 Module for UDP NAT Hole punching operations. Can be accessed from NetManager. More...
 
class  NetConnectAcceptPacket
 
class  NetConnectRequestPacket
 
class  NetConstants
 Network constants. Can be tuned from sources for your purposes.
 
class  NetDebug
 Static class for defining your own LiteNetLib logger instead of Console.WriteLine or Debug.Log if compiled with UNITY flag.
 
class  NetEvent
 
class  NetManager
 Main class for all network operations. Can be used as client and/or server. More...
 
class  NetPacket
 
class  NetPacketPool
 
class  NetPacketReader
 
class  NetPeer
 Network peer. Main purpose is sending messages to specific peer. More...
 
class  NetSocket
 
class  NetStatistics
 
class  NetUtils
 Some specific network utilities.
 
class  ReliableChannel
 
class  SequencedChannel
 
class  TooBigPacketException
 

Enumerations

enum  UnconnectedMessageType { BasicMessage , Broadcast }
 Type of message that you receive in OnNetworkReceiveUnconnected event.
 
enum  DisconnectReason {
  ConnectionFailed , Timeout , HostUnreachable , NetworkUnreachable ,
  RemoteConnectionClose , DisconnectPeerCalled , ConnectionRejected , InvalidProtocol ,
  UnknownHost , Reconnect , PeerToPeerConnection
}
 Disconnect reason that you receive in OnPeerDisconnected event.
 
enum  NatAddressType { Internal , External }
 
enum  DeliveryMethod : byte {
  Unreliable = 4 , ReliableUnordered = 0 , Sequenced = 1 , ReliableOrdered = 2 ,
  ReliableSequenced = 3
}
 Sending method type. More...
 
enum  NetLogLevel { Warning , Error , Trace , Info }
 
enum  IPv6Mode { Disabled , SeparateSocket , DualMode }
 
enum  ConnectionState : byte {
  Outgoing = 1 << 1 , Connected = 1 << 2 , ShutdownRequested = 1 << 3 , Disconnected = 1 << 4 ,
  Any = Outgoing | Connected | ShutdownRequested
}
 Peer connection state.
 
enum  LocalAddrType { IPv4 = 1 , IPv6 = 2 , All = IPv4 | IPv6 }
 Address type that you want to receive from NetUtils.GetLocalIp method.
 

Enumeration Type Documentation

◆ DeliveryMethod

Sending method type.

Enumerator
Unreliable 

Unreliable. Packets can be dropped, can be duplicated, can arrive without order.

ReliableUnordered 

Reliable. Packets won't be dropped, won't be duplicated, can arrive without order.

Sequenced 

Unreliable. Packets can be dropped, won't be duplicated, will arrive in order.

ReliableOrdered 

Reliable and ordered. Packets won't be dropped, won't be duplicated, will arrive in order.

ReliableSequenced 

Reliable only last packet. Packets can be dropped (except the last one), won't be duplicated, will arrive in order. Cannot be fragmented.