Show / Hide Table of Contents

Class BasePacketQueueHandler<T>

Inheritance
object
BasePacketQueueHandler<T>
ScalingPacketQueueHandler<T>
WorkerBasedPacketQueueHandler<T>
Implements
IPacketQueueHandler<T>
IPacketQueueHandlerBase
IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SlipeServer.Server.PacketHandling.Handlers.QueueHandlers
Assembly: SlipeServer.Server.dll
Syntax
public abstract class BasePacketQueueHandler<T> : IPacketQueueHandler<T>, IPacketQueueHandlerBase, IDisposable where T : Packet
Type Parameters
Name Description
T

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
Type Description
ConcurrentQueue<PacketQueueEntry<T>>

Properties

| Edit this page View Source

QueuedPacketCount

Declaration
public virtual int QueuedPacketCount { get; }
Property Value
Type Description
int

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
Type Description
Action
| Edit this page View Source

PacketHandled

Declaration
public event Action<T>? PacketHandled
Event Type
Type Description
Action<T>

Implements

IPacketQueueHandler<T>
IPacketQueueHandlerBase
IDisposable
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX