UdpServer Constructor
Namespace: Riptide.Transports.Udp
Assembly: RiptideNetworking.dll
Overloads
UdpServer(SocketMode, int) | Initializes the transport. |
UdpServer(IPAddress, int) | Initializes the transport, binding the socket to a specific IP address. |
UdpServer(SocketMode, int)
Initializes the transport.
public UdpServer(SocketMode mode = SocketMode.Both, int socketBufferSize = 1048576)
Parameters
SocketMode | mode |
Whether to create an IPv4 only, IPv6 only, or dual-mode socket. |
int | socketBufferSize |
How big the socket's send and receive buffers should be. |
UdpServer(IPAddress, int)
Initializes the transport, binding the socket to a specific IP address.
public UdpServer(IPAddress listenAddress, int socketBufferSize = 1048576)
Parameters
IPAddress | listenAddress |
The IP address to bind the socket to. |
int | socketBufferSize |
How big the socket's send and receive buffers should be. |