Click or drag to resize

NetPacketProcessor Class

Inheritance Hierarchy
SystemObject
  LiteNetLib.UtilsNetPacketProcessor

Namespace: LiteNetLib.Utils
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public class NetPacketProcessor

The NetPacketProcessor type exposes the following members.

Constructors
 NameDescription
Public methodNetPacketProcessorInitializes a new instance of the NetPacketProcessor class
Public methodNetPacketProcessor(Int32)Initializes a new instance of the NetPacketProcessor class
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Protected methodGetCallbackFromData 
Protected methodGetHashT 
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodReadAllPackets(NetDataReader) Reads all available data from NetDataReader and calls OnReceive delegates
Public methodReadAllPackets(NetDataReader, Object) Reads all available data from NetDataReader and calls OnReceive delegates
Public methodReadPacket(NetDataReader) Reads one packet from NetDataReader and calls OnReceive delegate
Public methodReadPacket(NetDataReader, Object) Reads one packet from NetDataReader and calls OnReceive delegate
Public methodRegisterNestedTypeT Register nested property type
Public methodRegisterNestedTypeT(FuncT) Register nested property type
Public methodRegisterNestedTypeT(ActionNetDataWriter, T, FuncNetDataReader, T) Register nested property type
Public methodRemoveSubscriptionT Remove any subscriptions by type
Public methodSubscribeT(ActionT, FuncT) Register and subscribe to packet receive event
Public methodSubscribeT, TUserData(ActionT, TUserData, FuncT) Register and subscribe to packet receive event (with userData)
Public methodSubscribeNetSerializableT(ActionT) Registers a callback for a packet type that implements INetSerializable and has a parameterless constructor.
Public methodSubscribeNetSerializableT(ActionT, FuncT) Registers a callback for a packet type that implements INetSerializable, using a custom constructor.
Public methodSubscribeNetSerializableT, TUserData(ActionT, TUserData) Registers a callback for a packet type that implements INetSerializable and has a parameterless constructor, supporting user data.
Public methodSubscribeNetSerializableT, TUserData(ActionT, TUserData, FuncT) Registers a callback for a packet type that implements INetSerializable, using a custom constructor and supporting user data.
Public methodSubscribeReusableT(ActionT) Register and subscribe to packet receive event This method will overwrite last received packet class on receive (less garbage)
Public methodSubscribeReusableT, TUserData(ActionT, TUserData) Register and subscribe to packet receive event This method will overwrite last received packet class on receive (less garbage)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWriteT 
Protected methodWriteHashT 
Public methodWriteNetSerializableT 
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also