Show / Hide Table of Contents

Class PacketReducer

Class responsible for routing packets to the appropriate queues

Inheritance
object
PacketReducer
Implements
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
Assembly: SlipeServer.Server.dll
Syntax
public class PacketReducer : IDisposable

Constructors

| Edit this page View Source

PacketReducer(ILogger)

Declaration
public PacketReducer(ILogger logger)
Parameters
Type Name Description
ILogger logger

Properties

| Edit this page View Source

RegisteredQueueHandlers

Declaration
public IEnumerable<IQueueHandler> RegisteredQueueHandlers { get; }
Property Value
Type Description
IEnumerable<IQueueHandler>

Methods

| Edit this page View Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()
| Edit this page View Source

EnqueuePacket(IClient, PacketId, byte[])

Declaration
public void EnqueuePacket(IClient client, PacketId packetId, byte[] data)
Parameters
Type Name Description
IClient client
PacketId packetId
byte[] data
| Edit this page View Source

RegisterPacketHandler<TPacket>(PacketId, IPacketQueueHandler<TPacket>)

Declaration
public void RegisterPacketHandler<TPacket>(PacketId packetId, IPacketQueueHandler<TPacket> handler) where TPacket : Packet, new()
Parameters
Type Name Description
PacketId packetId
IPacketQueueHandler<TPacket> handler
Type Parameters
Name Description
TPacket
| Edit this page View Source

UnregisterQueueHandler(PacketId, IQueueHandler)

Declaration
public void UnregisterQueueHandler(PacketId packetId, IQueueHandler queueHandler)
Parameters
Type Name Description
PacketId packetId
IQueueHandler queueHandler

Implements

IDisposable
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX