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

◆ DropMulticastGroup() [2/2]

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

Definition at line 410 of file UdpClient.cs.

411 {
413 if (multicastAddr == null)
414 {
415 throw new ArgumentNullException("multicastAddr");
416 }
417 if (ifindex < 0)
418 {
420 }
421 if (_family != AddressFamily.InterNetworkV6)
422 {
423 throw new SocketException(10045);
424 }
425 IPv6MulticastOption optionValue = new IPv6MulticastOption(multicastAddr, ifindex);
426 _clientSocket.SetSocketOption(SocketOptionLevel.IPv6, SocketOptionName.DropMembership, optionValue);
427 }
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().