Search Results for

    Show / Hide Table of Contents

    UdpServer Class

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

    A server which can accept connections from UdpClients.

    public class UdpServer : UdpPeer, IServer, IPeer
    Inheritance
    object
    UdpPeer
    UdpServer
    Implements
    IServer
    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

    UdpServer(SocketMode, int)

    Initializes the transport.

    UdpServer(IPAddress, int)

    Initializes the transport, binding the socket to a specific IP address.

    Properties

    Port

    The local port that the server is running on.

    Methods

    Close(Connection)

    Closes an active connection.

    OnConnected(Connection)

    Invokes the Connected event.

    OnDataReceived(byte[], int, IPEndPoint)

    Handles received data.

    Shutdown()

    Closes all existing connections and stops listening for new connections.

    Start(ushort)

    Starts the transport and begins listening for incoming connections.

    Events

    Connected

    Invoked when a connection is established 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