Search Results for

    Show / Hide Table of Contents

    Server.Send Method

    Namespace: Riptide
    Assembly: RiptideNetworking.dll

    Overloads

    Send(Message, ushort, bool)

    Sends a message to a given client.

    Send(Message, Connection, bool)

    Sends a message to a given client.

    Send(Message, ushort, bool)

    Sends a message to a given client.

    public void Send(Message message, ushort toClient, bool shouldRelease = true)

    Parameters

    Message message

    The message to send.

    ushort toClient

    The numeric ID of the client to send the message to.

    bool shouldRelease

    Whether or not to return the message to the pool after it is sent.

    Remarks

    If you intend to continue using the message instance after calling this method, you must set shouldRelease to false. Release() can be used to manually return the message to the pool at a later time.

    Send(Message, Connection, bool)

    Sends a message to a given client.

    public ushort Send(Message message, Connection toClient, bool shouldRelease = true)

    Parameters

    Message message

    The message to send.

    Connection toClient

    The client to send the message to.

    bool shouldRelease

    Whether or not to return the message to the pool after it is sent.

    Returns

    ushort

    For reliable and notify messages, the sequence ID that the message was sent with. 0 for unreliable messages.

    Remarks

    If you intend to continue using the message instance after calling this method, you must set shouldRelease to false. Release() can be used to manually return the message to the pool at a later time.

    • Improve this Doc
    • View Source
    • Support Riptide
    In This Article
    Back to top Copyright © Tom Weiland 2022
    Made with DocFX