Class BasePacketQueueHandler<T>
Inheritance
BasePacketQueueHandler<T>
Assembly: SlipeServer.Server.dll
Syntax
public abstract class BasePacketQueueHandler<T> : IPacketQueueHandler<T>, IPacketQueueHandlerBase, IDisposable where T : Packet
Type Parameters
Constructors
|
Edit this page
View Source
BasePacketQueueHandler()
Declaration
public BasePacketQueueHandler()
Fields
|
Edit this page
View Source
packetQueue
Declaration
protected readonly ConcurrentQueue<PacketQueueEntry<T>> packetQueue
Field Value
Properties
|
Edit this page
View Source
QueuedPacketCount
Declaration
public virtual int QueuedPacketCount { get; }
Property Value
Methods
|
Edit this page
View Source
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public virtual void Dispose()
|
Edit this page
View Source
EnqueuePacket(IClient, T)
Declaration
public virtual void EnqueuePacket(IClient client, T packet)
Parameters
Type |
Name |
Description |
IClient |
client |
|
T |
packet |
|
|
Edit this page
View Source
TriggerPacketHandled(T)
Declaration
protected void TriggerPacketHandled(T packet)
Parameters
Type |
Name |
Description |
T |
packet |
|
Events
|
Edit this page
View Source
Disposed
Declaration
public event Action Disposed
Event Type
|
Edit this page
View Source
PacketHandled
Declaration
public event Action<T>? PacketHandled
Event Type
Implements