Search Results for

    Show / Hide Table of Contents

    Class PacketBufferCollection<TKey>

    A collection of keyed buffers. This is a helper class to try and help prevent repeated code.

    Inheritance
    Object
    BasePacketBufferCollection
    PacketBufferCollection<TKey>
    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 Source

    DestroyQueue(TKey)

    Destroy the given queue.

    Declaration
    public void DestroyQueue(TKey key)
    Parameters
    Type Name Description
    TKey key

    The key.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    ExecutePending(TKey)

    Execute the packet buffer stored at key.

    Declaration
    public void ExecutePending(TKey key)
    Parameters
    Type Name Description
    TKey key

    The key.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    PurgeOldPackets()

    Purge all old packets across all buffers.

    Declaration
    public override void PurgeOldPackets()
    Overrides
    BasePacketBufferCollection.PurgeOldPackets()
    • Improve this Doc
    • View Source
    In This Article
    Back to top (C) 2020 Reece Mackie. Released under the MIT License.