Search Results for

    Show / Hide Table of Contents

    UdpClient Class

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

    A client which can connect to a UdpServer.

    public class UdpClient : UdpPeer, IClient, IPeer
    Inheritance
    object
    UdpPeer
    UdpClient
    Implements
    IClient
    IPeer
    Inherited Members
    UdpPeer.Disconnected
    UdpPeer.DefaultSocketBufferSize
    UdpPeer.mode
    UdpPeer.Poll()
    UdpPeer.OpenSocket(IPAddress, ushort)
    UdpPeer.CloseSocket()
    UdpPeer.OnDisconnected(Connection, DisconnectReason)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()

    Constructors

    UdpClient(SocketMode, int)

    Initializes the transport.

    Methods

    Connect(string, out Connection, out string)

    Starts the transport and attempts to connect to the given host address.

    Disconnect()

    Closes the connection to the server.

    OnConnected()

    Invokes the Connected event.

    OnConnectionFailed()

    Invokes the ConnectionFailed event.

    OnDataReceived(byte[], int, IPEndPoint)

    Handles received data.

    Events

    Connected

    Invoked when a connection is established at the transport level.

    ConnectionFailed

    Invoked when a connection attempt fails at the transport level.

    DataReceived

    Invoked when data is received by the transport.

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