UdpPeer Class
Namespace: Riptide.Transports.Udp
Assembly: RiptideNetworking.dll
public abstract class UdpPeer
Inherited Members
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. |