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

◆ GetIPv6MulticastOption()

static SocketError System.Net.Sockets.SocketPal.GetIPv6MulticastOption ( SafeSocketHandle handle,
SocketOptionName optionName,
out IPv6MulticastOption optionValue )
inlinestatic

Definition at line 643 of file SocketPal.cs.

644 {
645 global::Interop.Winsock.IPv6MulticastRequest optionValue2 = default(global::Interop.Winsock.IPv6MulticastRequest);
646 int optionLength = global::Interop.Winsock.IPv6MulticastRequest.Size;
647 SocketError socketError = global::Interop.Winsock.getsockopt(handle, SocketOptionLevel.IP, optionName, out optionValue2, ref optionLength);
648 if (socketError == SocketError.SocketError)
649 {
650 optionValue = null;
651 return GetLastSocketError();
652 }
653 optionValue = new IPv6MulticastOption(new IPAddress(optionValue2.MulticastAddress), optionValue2.InterfaceIndex);
654 return SocketError.Success;
655 }
static SocketError GetLastSocketError()
Definition SocketPal.cs:22

References System.Net.Sockets.SocketPal.GetLastSocketError(), and System.handle.

Referenced by System.Net.Sockets.Socket.GetIPv6MulticastOpt().