UdpClient Class
Namespace: Riptide.Transports.Udp
Assembly: RiptideNetworking.dll
A client which can connect to a UdpServer.
public class UdpClient : UdpPeer, IClient, IPeer
Inherited Members
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. |