Search Results for

    Show / Hide Table of Contents

    UdpPeer Class

    Namespace: Riptide.Transports.Udp
    Assembly: RiptideNetworking.dll

    Provides base send & receive functionality for UdpServer and UdpClient.

    public abstract class UdpPeer
    Inheritance
    object
    UdpPeer
    UdpClient
    UdpServer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()

    Constructors

    UdpPeer(SocketMode, int)

    Initializes the transport.

    Fields

    DefaultSocketBufferSize

    The default size used for the socket's send and receive buffers.

    mode

    Whether to create an IPv4 only, IPv6 only, or dual-mode socket.

    Methods

    CloseSocket()

    Closes the socket and stops the transport.

    OnDataReceived(byte[], int, IPEndPoint)

    Handles received data.

    OnDisconnected(Connection, DisconnectReason)

    Invokes the Disconnected event.

    OpenSocket(IPAddress, ushort)

    Opens the socket and starts the transport.

    Poll()

    Initiates handling of any received messages.

    Events

    Disconnected

    Invoked when a disconnection is initiated or detected by the transport.

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