Search Results for

    Show / Hide Table of Contents

    Connection.Send Method

    Namespace: Riptide
    Assembly: RiptideNetworking.dll

    Overloads

    Send(Message, bool)

    Sends a message.

    Send(byte[], int)

    Sends data.

    Send(Message, bool)

    Sends a message.

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

    Parameters

    Message message

    The message to send.

    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.

    Send(byte[], int)

    Sends data.

    protected abstract void Send(byte[] dataBuffer, int amount)

    Parameters

    byte[] dataBuffer

    The array containing the data.

    int amount

    The number of bytes in the array which should be sent.

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