Class PacketBufferCollection<TKey>
A collection of keyed buffers. This is a helper class to try and help prevent repeated code.
Namespace: FNNLib.Messaging
Assembly: FNNLib.dll
Syntax
public class PacketBufferCollection<TKey> : BasePacketBufferCollection
Type Parameters
| Name | Description |
|---|---|
| TKey | The key type. |
Methods
| Improve this Doc View SourceDestroyQueue(TKey)
Destroy the given queue.
Declaration
public void DestroyQueue(TKey key)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | key | The key. |
Enqueue(TKey, BufferedPacket)
Enqueue a buffered packet with a key.
Declaration
public void Enqueue(TKey key, BufferedPacket packet)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | key | The key to buffer with. |
| BufferedPacket | packet | The packet to buffer. |
ExecutePending(TKey)
Execute the packet buffer stored at key.
Declaration
public void ExecutePending(TKey key)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | key | The key. |
HasPending(TKey)
Whether or not the buffer at key has pending packets.
Declaration
public bool HasPending(TKey key)
Parameters
| Type | Name | Description |
|---|---|---|
| TKey | key | The key. |
Returns
| Type | Description |
|---|---|
| Boolean | Whether or not the buffer has pending packets. |
PurgeOldPackets()
Purge all old packets across all buffers.
Declaration
public override void PurgeOldPackets()