Click or drag to resize

EventBasedNetListener Class

Simple event based listener for simple setups and benchmarks
Inheritance Hierarchy
SystemObject
  LiteNetLibEventBasedNetListener

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

The EventBasedNetListener type exposes the following members.

Constructors
 NameDescription
Public methodEventBasedNetListenerInitializes a new instance of the EventBasedNetListener class
Top
Methods
 NameDescription
Public methodClearConnectionRequestEvent Clears all subscribers from ConnectionRequestEvent.
Public methodClearDeliveryEvent Clears all subscribers from DeliveryEvent.
Public methodClearNetworkErrorEvent Clears all subscribers from NetworkErrorEvent.
Public methodClearNetworkLatencyUpdateEvent Clears all subscribers from NetworkLatencyUpdateEvent.
Public methodClearNetworkReceiveEvent Clears all subscribers from NetworkReceiveEvent.
Public methodClearNetworkReceiveUnconnectedEvent Clears all subscribers from NetworkReceiveUnconnectedEvent.
Public methodClearNtpResponseEvent Clears all subscribers from NtpResponseEvent.
Public methodClearPeerAddressChangedEvent Clears all subscribers from PeerAddressChangedEvent.
Public methodClearPeerConnectedEvent Clears all subscribers from PeerConnectedEvent.
Public methodClearPeerDisconnectedEvent Clears all subscribers from PeerDisconnectedEvent.
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)
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 methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventConnectionRequestEvent Occurs when a new connection request is received.
Public eventDeliveryEvent Occurs when a reliable packet is successfully delivered or acknowledged.
Public eventNetworkErrorEvent Occurs when a network error is detected in the underlying socket.
Public eventNetworkLatencyUpdateEvent Occurs when the round-trip time (RTT) to a peer is updated.
Public eventNetworkReceiveEvent Occurs when data is received from a connected peer.
Public eventNetworkReceiveUnconnectedEvent Occurs when a message is received from an unconnected endpoint.
Public eventNtpResponseEvent Occurs when an NTP response is received.
Public eventPeerAddressChangedEvent Occurs when a peer's remote address changes.
Public eventPeerConnectedEvent Occurs when a new peer has successfully connected.
Public eventPeerDisconnectedEvent Occurs when a peer disconnects or the connection is lost.
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