Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ JoinMulticastGroup() [1/4]

void System.Net.Sockets.UdpClient.JoinMulticastGroup ( int ifindex,
IPAddress multicastAddr )
inline

Definition at line 353 of file UdpClient.cs.

354 {
356 if (multicastAddr == null)
357 {
358 throw new ArgumentNullException("multicastAddr");
359 }
360 if (ifindex < 0)
361 {
363 }
364 if (_family != AddressFamily.InterNetworkV6)
365 {
366 throw new SocketException(10045);
367 }
368 IPv6MulticastOption optionValue = new IPv6MulticastOption(multicastAddr, ifindex);
369 _clientSocket.SetSocketOption(SocketOptionLevel.IPv6, SocketOptionName.AddMembership, optionValue);
370 }
void SetSocketOption(SocketOptionLevel optionLevel, SocketOptionName optionName, int optionValue)
Definition Socket.cs:2143
static string net_value_cannot_be_negative
Definition SR.cs:96
Definition SR.cs:7

References System.Net.Sockets.UdpClient._clientSocket, System.Net.Sockets.UdpClient._family, System.SR.net_value_cannot_be_negative, System.Net.Sockets.Socket.SetSocketOption(), and System.Net.Sockets.UdpClient.ThrowIfDisposed().