Click or drag to resize

NetEvent Class

Internally used event type
Inheritance Hierarchy
SystemObject
  LiteNetLibNetEvent

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

The NetEvent type exposes the following members.

Constructors
 NameDescription
Public methodNetEvent Initializes a new instance of the NetEvent class.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldChannelNumber The channel on which the packet was received.
Public fieldConnectionRequest Information about an incoming connection. Only valid when Type is ConnectionRequest.
Public fieldDataReader A reader for accessing the payload of received data, broadcast, or unconnected messages.
Public fieldDeliveryMethod The delivery method used for the received packet. Only valid when Type is Receive.
Public fieldDisconnectReason The reason for a peer's disconnection. Only valid when Type is Disconnect.
Public fieldErrorCode The specific socket error. Only valid when Type is Error.
Public fieldLatency The updated latency value in milliseconds. Only valid when Type is ConnectionLatencyUpdated.
Public fieldNext Reference to the next event in the pool or event queue.
Public fieldPeer The peer associated with this event. for unconnected events.
Public fieldRemoteEndPoint The remote endpoint (IP and Port) from which the event originated.
Public fieldType The type of network event that occurred.
Public fieldUserData Optional user data associated with a connection request or disconnect.
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