UdpServer Class
Namespace: Riptide.Transports.Udp
Assembly: RiptideNetworking.dll
A server which can accept connections from UdpClients.
public class UdpServer : UdpPeer, IServer, IPeer
Inherited Members
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. |